mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Fix crash caused by invalid mix_rate assignment due to bogus
project settings. We'll default to a sensible value in the case that a user has somehow managed to modify the configuration file incorrectly. Closes 69819
This commit is contained in:
@@ -103,7 +103,7 @@ void AudioDriverWeb::_audio_driver_capture(int p_from, int p_samples) {
|
||||
Error AudioDriverWeb::init() {
|
||||
int latency = GLOBAL_GET("audio/driver/output_latency");
|
||||
if (!audio_context.inited) {
|
||||
audio_context.mix_rate = GLOBAL_GET("audio/driver/mix_rate");
|
||||
audio_context.mix_rate = _get_configured_mix_rate();
|
||||
audio_context.channel_count = godot_audio_init(&audio_context.mix_rate, latency, &_state_change_callback, &_latency_update_callback);
|
||||
audio_context.inited = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user