expose audio to twnlua
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
/* plays audio file at specified channel or at scratch channel if NULL is passed, without ability to refer to it later */
|
||||
/* path path must contain valid file extension to infer which file format it is */
|
||||
/* supported formats: .ogg, .xm */
|
||||
TWN_API void audio_play(const char *path,
|
||||
TWN_API void audio_play(const char *audio,
|
||||
const char *channel, /* optional */
|
||||
bool repeat, /* default: false */
|
||||
float volume, /* default: 1.0f, range: 0.0f to 1.0f */
|
||||
|
Reference in New Issue
Block a user