![]() |
Doly C++ SDK v1.00
|
Functions | |
| int8_t | init () |
| Initialize sound control. | |
| int8_t | dispose () |
| Dispose/stop the sound subsystem and release resources. | |
| int8_t | play (std::string file_name, uint16_t id) |
| Start playing a sound file (non-blocking). | |
| void | Abort () |
| Abort the currently playing sound (if any). | |
| SoundState | getState () |
| Get current sound playback state. | |
| bool | isActive () |
| Check whether the sound subsystem is active (initialized). | |
| int8_t | setVolume (uint8_t volume) |
| Set playback volume as a percentage. | |
| float | getVersion () |
| Get current library version. | |
| void SoundControl::Abort | ( | ) |
Abort the currently playing sound (if any).
| int8_t SoundControl::dispose | ( | ) |
Dispose/stop the sound subsystem and release resources.
| SoundState SoundControl::getState | ( | ) |
| float SoundControl::getVersion | ( | ) |
Get current library version.
Original note: format 0.XYZ (3 digits after major).
| int8_t SoundControl::init | ( | ) |
Initialize sound control.
| bool SoundControl::isActive | ( | ) |
Check whether the sound subsystem is active (initialized).
| int8_t SoundControl::play | ( | std::string | file_name, |
| uint16_t | id ) |
Start playing a sound file (non-blocking).
| file_name | Full path of the sound file. |
| id | User-defined sound identifier forwarded to SoundEvent callbacks. |
| int8_t SoundControl::setVolume | ( | uint8_t | volume | ) |
Set playback volume as a percentage.
| volume | Volume percentage (0..100). |