1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Fallback to the dummy audio driver if no other driver works

Fix this issue https://github.com/godotengine/godot/issues/1684
This commit is contained in:
Xavier Sellier
2019-12-18 19:07:17 -05:00
committed by Xavier Sellier
parent 38568f82c3
commit 400e273eee
13 changed files with 53 additions and 83 deletions

View File

@@ -143,12 +143,7 @@ void OS_Android::initialize(const VideoMode &p_desired, int p_video_driver, int
};
visual_server->init();
AudioDriverManagerSW::get_driver(p_audio_driver)->set_singleton();
if (AudioDriverManagerSW::get_driver(p_audio_driver)->init() != OK) {
ERR_PRINT("Initializing audio failed.");
}
AudioDriverManagerSW::initialize(p_audio_driver);
sample_manager = memnew(SampleManagerMallocSW);
audio_server = memnew(AudioServerSW(sample_manager));