audio module
Core framework
Console
Desktop
Property |
Description |
Access |
Type |
audio.position |
Get/set the listener position in the world |
readwrite |
table |
audio.direction |
Get/set the listener direction in the world |
readwrite |
table |
audio.velocity |
Get/set the listener velocity |
readwrite |
table |
audio.cone |
Get/set the listener cone |
readwrite |
table |
audio.worldup |
Get/set the listener worldup direction |
readwrite |
table |
audio.volume |
Get/set the master volume |
readwrite |
number |
audio.gain |
Get/set the master gain |
readwrite |
number |
audio.channels |
Get the current device number of channels |
readonly |
number |
audio.samplerate |
Get the current device sample rate |
readonly |
number |
audio.device |
Get the current device name |
readonly |
string |
Function
| Description |
Return value |
audio.play() |
Play a sound |
boolean |
Object
| Description |
Sound |
Object representation of a sound |