mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
ALSpeaker start volume fix + 'master' channel is now forbidden to use in Lua
This commit is contained in:
parent
8a8f2013ae
commit
bded7763d0
2 changed files with 6 additions and 2 deletions
|
|
@ -13,7 +13,11 @@ inline int extract_channel_index(lua_State* L, int idx) {
|
|||
if (!lua_isnoneornil(L, idx)) {
|
||||
channel = lua_tostring(L, idx);
|
||||
}
|
||||
return audio::get_channel_index(channel);
|
||||
int index = audio::get_channel_index(channel);
|
||||
if (index == 0) {
|
||||
return -1;
|
||||
}
|
||||
return index;
|
||||
}
|
||||
|
||||
inline audio::speakerid_t play_sound(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue