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

@ -213,6 +213,30 @@
{ "name": "textures", "type": "char *", "default": {} }
]
},
"audio_play": {
"module": "audio",
"symbol": "play",
"header": "twn_audio.h",
"params": [
{ "name": "audio", "type": "char *" },
{ "name": "channel", "type": "char *", "default": {} },
{ "name": "repeat", "type": "bool", "default": false },
{ "name": "volume", "type": "float", "default": 1.0 },
{ "name": "panning", "type": "float", "default": 0.0 }
]
},
"audio_parameter": {
"module": "audio",
"symbol": "parameter",
"header": "twn_audio.h",
"params": [
{ "name": "channel", "type": "char *" },
{ "name": "parameter", "type": "char *" },
{ "name": "value", "type": "float" }
]
}
},
"types": {