mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
remove audio.__set_input_device
This commit is contained in:
parent
2f01db8e8b
commit
6cee20ed86
1 changed files with 0 additions and 7 deletions
|
|
@ -431,12 +431,6 @@ static int l_audio_get_output_devices_names(lua::State* L) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int l_audio_set_input_device(lua::State* L) {
|
||||
auto device_name = lua::tostring(L, 1);
|
||||
audio::set_input_device(device_name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int l_audio_get_input_info(lua::State* L) {
|
||||
auto device = audio::get_input_device();
|
||||
if (device == nullptr) {
|
||||
|
|
@ -482,7 +476,6 @@ const luaL_Reg audiolib[] = {
|
|||
{"__fetch_input", lua::wrap<l_audio_fetch_input>},
|
||||
{"__get_input_devices_names", lua::wrap<l_audio_get_input_devices_names>},
|
||||
{"__get_output_devices_names", lua::wrap<l_audio_get_output_devices_names>},
|
||||
{"__set_input_device", lua::wrap<l_audio_set_input_device>},
|
||||
{"__get_input_info", lua::wrap<l_audio_get_input_info>},
|
||||
{nullptr, nullptr}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue