|
static bool | lazyInit () |
var | lazyInit () |
local | lazyInit () |
static void | end () |
| Release related objects. More...
|
|
local | end () |
| Release related objects. More...
|
|
static AudioProfile * | getDefaultProfile () |
| Gets the default profile of audio instances. More...
|
|
var | getDefaultProfile () |
| Gets the default profile of audio instances. More...
|
|
local | getDefaultProfile () |
| Gets the default profile of audio instances. More...
|
|
static int | play2d (const std::string &filePath, bool loop=false, float volume=1.0f, const AudioProfile *profile=nullptr) |
| Play 2d sound. More...
|
|
local | play2d ( local filePath, local false, local 0f, local nullptr) |
| Play 2d sound. More...
|
|
static void | setLoop (int audioID, bool loop) |
| Sets whether an audio instance loop or not. More...
|
|
static bool | isLoop (int audioID) |
| Checks whether an audio instance is loop. More...
|
|
static void | setVolume (int audioID, float volume) |
| Sets volume for an audio instance. More...
|
|
local | setVolume ( local audioID, local volume) |
| Sets volume for an audio instance. More...
|
|
static float | getVolume (int audioID) |
| Gets the volume value of an audio instance. More...
|
|
static void | pause (int audioID) |
| Pause an audio instance. More...
|
|
local | pause ( local audioID) |
| Pause an audio instance. More...
|
|
static void | pauseAll () |
| Pause all playing audio instances. More...
|
|
static void | resume (int audioID) |
| Resume an audio instance. More...
|
|
var | resume ( var audioID) |
| Resume an audio instance. More...
|
|
local | resume ( local audioID) |
| Resume an audio instance. More...
|
|
static void | resumeAll () |
| Resume all suspended audio instances. More...
|
|
static void | stop (int audioID) |
| Stop an audio instance. More...
|
|
local | stop ( local audioID) |
| Stop an audio instance. More...
|
|
static void | stopAll () |
| Stop all audio instances. More...
|
|
static bool | setCurrentTime (int audioID, float time) |
| Sets the current playback position of an audio instance. More...
|
|
local | setCurrentTime ( local audioID, local time) |
| Sets the current playback position of an audio instance. More...
|
|
static float | getCurrentTime (int audioID) |
| Gets the current playback position of an audio instance. More...
|
|
static float | getDuration (int audioID) |
| Gets the duration of an audio instance. More...
|
|
static AudioState | getState (int audioID) |
| Returns the state of an audio instance. More...
|
|
local | getState ( local audioID) |
| Returns the state of an audio instance. More...
|
|
static void | setFinishCallback (int audioID, const std::function< void(int, const std::string &)> &callback) |
| Register a callback to be invoked when an audio instance has completed playing. More...
|
|
static int | getMaxAudioInstance () |
static bool | setMaxAudioInstance (int maxInstances) |
local | setMaxAudioInstance ( local maxInstances) |
static void | uncache (const std::string &filePath) |
| Uncache the audio data from internal buffer. More...
|
|
var | uncache ( var filePath) |
| Uncache the audio data from internal buffer. More...
|
|
local | uncache ( local filePath) |
| Uncache the audio data from internal buffer. More...
|
|
static void | uncacheAll () |
| Uncache all audio data from internal buffer. More...
|
|
static AudioProfile * | getProfile (int audioID) |
| Gets the audio profile by id of audio instance. More...
|
|
var | getProfile ( var audioID) |
| Gets the audio profile by id of audio instance. More...
|
|
local | getProfile ( local audioID) |
| Gets the audio profile by id of audio instance. More...
|
|
static AudioProfile * | getProfile (const std::string &name) |
| Gets the audio profile by name. More...
|
|