expose audio to twnlua

This commit is contained in:
veclavtalica
2025-01-15 04:15:08 +03:00
parent d5b42fa242
commit 9d0a2cab81
3 changed files with 28 additions and 4 deletions

View File

@ -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 */