Description: Loads a short sound effect from disk into memory and registers it under a user-defined name. Once loaded, the sound can be played instantly by referencing its name, making this method ideal for frequently used effects such as button clicks, explosions, jumps, or UI feedback sounds.
from VertexEngine.audio import AudioManager
AudioManager.load_sound("click", "assets/audio/click.wav")
name (str):
A unique identifier assigned to the sound. This name is later used to
play or control the sound through the AudioManager.
path (str):
The file path to the sound effect file to load. Common supported formats
include .wav, .mp3, and .ogg, depending
on the audio backend.
Sound object — An object representing the loaded sound effect. This object may be used directly or managed internally by the AudioManager for playback and volume control.
AudioManager.load_music() instead.