|
| | gFmodSound () |
| |
| | gSound () |
| |
| virtual | ~gSound () |
| |
| int | load (const std::string &fullPath) override |
| | Loads a sound file from the full file system path.
|
| |
| int | loadSound (const std::string &soundPath) override |
| | Loads the sound file from the given project-relative path.
|
| |
| void | play () override |
| | Starts sound playback and resets the position to the beginning.
|
| |
| bool | isLoaded () override |
| |
| bool | isPlaying () override |
| |
| bool | isPaused () override |
| |
| void | setPaused (bool isPaused) override |
| | Pauses or resumes the playback.
|
| |
| void | stop () override |
| | Stops playback and resets position to the beginning.
|
| |
| void | close () override |
| | Unloads and frees the sound resource.
|
| |
| int | getDuration () override |
| | Returns the total duration of the sound in milliseconds.
|
| |
| int | getPosition () override |
| | Returns the current playback position in milliseconds.
|
| |
| void | setPosition (int position) override |
| | Sets the current playback position in milliseconds.
|
| |
| LoopType | getLoopType () override |
| |
| void | setLoopType (LoopType loopType) override |
| | Sets the loop type for playback.
|
| |
| float | getVolume () override |
| | Gets the current volume level.
|
| |
| void | setVolume (float volume) override |
| | Sets the volume level.
|
| |
| const std::string & | getPath () override |
| | Gets the path to the currently loaded file.
|
| |
| | gObject () |
| |
| void | logi (std::string message) |
| |
| void | logd (std::string message) |
| |
| void | logw (std::string message) |
| |
| void | loge (std::string message) |
| |
| void | logi (std::string tag, std::string message) |
| |
| void | logd (std::string tag, std::string message) |
| |
| void | logw (std::string tag, std::string message) |
| |
| void | loge (std::string tag, std::string message) |
| |