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,6 +532,7 @@ void BKE_sound_reset_scene_specs(Scene *scene)
{
sound_verify_evaluated_id(&scene->id);
if (scene->sound_scene) {
AUD_Specs specs;
specs.channels = AUD_Device_getChannels(sound_device);
@@ -539,6 +540,7 @@ void BKE_sound_reset_scene_specs(Scene *scene)
AUD_Sequence_setSpecs(scene->sound_scene, specs);
}
}
void BKE_sound_mute_scene(Scene *scene, int muted)
{