LuaSTG-x Core API
|
function getActiveEffects | ( | ) |
Gets list of EFX effect names.
return List of EFX names to fill.
function getActiveSourceCount | ( | ) |
Gets the current number of simultaneous playing sources.
return The current number of simultaneous playing sources.
function getDistanceModel | ( | ) |
Gets the distance model used for attenuation.
return Distance model.
function getDopplerScale | ( | ) |
Gets the OpenAL format identifier based on number of
channels and bits.
param channels
param bitDepth Either 8-bit samples, or 16-bit samples.
return One of AL_FORMAT_*, or AL_NONE if unsupported format.
bitDepth | number |
channels | number |
function getLastError | ( | ) |
function getMaxEffectCount | ( | ) |
Gets maximum number of scene EFX effects.
return number of effects.
function getMaxSourceCount | ( | ) |
Gets the maximum supported number of simultaneous playing sources.
return The maximum supported number of simultaneous playing sources.
function getMaxSourceEffectCount | ( | ) |
Gets maximum number of source EFX effects.
return number of effects.
function getOrientation | ( | ) |
Gets the orientation of the listener.
return A vector array of size 2 containing the forward
vector and the up vector.
function getPosition | ( | ) |
Gets the position of the listener.
function getRecordingDevices | ( | ) |
return Reference to a vector of pointers to recording devices. May be empty.
function getVelocity | ( | ) |
Gets the velocity of the listener.
function getVolume | ( | ) |
Gets the master volume.
return The current master volume.
function isEffectSupported | ( | ) |
Gets EFX (or analog) availability.
return true if supported.
function isValid | ( | ) |
function onEnterBackground | ( | ) |
function onEnterForeground | ( | ) |
Pauses all audio.
sources | array_table |
Play the specified Sources.
param sources The Sources to play.
sources | array_table |
Removes scene EFX effect.
param name Effect name to clear.
return true if successful, false otherwise.
name | string |
Sets the distance model used for attenuation.
param distanceModel Distance model.
distanceModel | number |
scale | number |
Sets the orientation of the listener.
param forward the forward vector
param up the up vector.
forward | vec3_table |
up | vec3_table |
Sets the master volume, where 0.0f is min (off) and 1.0f is max.
param volume The new master volume.
volume | number |
Stops all playing audio.
sources | array_table |