Fix: setting an audio callback before audio device initialization.
authorJörg Müller <nexyon@gmail.com>
Tue, 8 Nov 2016 23:06:49 +0000 (00:06 +0100)
committerJörg Müller <nexyon@gmail.com>
Tue, 8 Nov 2016 23:06:49 +0000 (00:06 +0100)
source/blender/blenkernel/intern/sound.c

index 3132a8e27e7eaa0d0842e4622c57a3ee79eda96d..f20885b1e8fcb3d9dd650276cbb3ae01579eef35 100644 (file)
@@ -251,7 +251,8 @@ void BKE_sound_init(struct Main *bmain)
 void BKE_sound_init_main(struct Main *bmain)
 {
 #ifdef WITH_JACK
-       AUD_setSynchronizerCallback(sound_sync_callback, bmain);
+       if (sound_device)
+               AUD_setSynchronizerCallback(sound_sync_callback, bmain);
 #else
        (void)bmain; /* unused */
 #endif