Fix crash in background rendering after recent sound changes

This commit is contained in:
2019-05-03 19:44:49 +02:00
parent 3c07967ef2
commit bed8ad6f95

View File

@@ -532,12 +532,14 @@ void BKE_sound_reset_scene_specs(Scene *scene)
{
sound_verify_evaluated_id(&scene->id);
AUD_Specs specs;
if (scene->sound_scene) {
AUD_Specs specs;
specs.channels = AUD_Device_getChannels(sound_device);
specs.rate = AUD_Device_getRate(sound_device);
specs.channels = AUD_Device_getChannels(sound_device);
specs.rate = AUD_Device_getRate(sound_device);
AUD_Sequence_setSpecs(scene->sound_scene, specs);
AUD_Sequence_setSpecs(scene->sound_scene, specs);
}
}
void BKE_sound_mute_scene(Scene *scene, int muted)