diff options
author | Jörg Müller <nexyon@gmail.com> | 2016-11-09 02:06:49 +0300 |
---|---|---|
committer | Jörg Müller <nexyon@gmail.com> | 2016-11-09 02:06:49 +0300 |
commit | e9689e1a204ee9b74fae7d0051b79649e79035f7 (patch) | |
tree | 05e1854647a781eeea4276fa2c3fee52023d9453 /source/blender/blenkernel/intern | |
parent | 4d0f7c320c29bcb5dcf4435a0740822d00d35493 (diff) |
Fix: setting an audio callback before audio device initialization.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/sound.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/sound.c b/source/blender/blenkernel/intern/sound.c index 3132a8e27e7..f20885b1e8f 100644 --- a/source/blender/blenkernel/intern/sound.c +++ b/source/blender/blenkernel/intern/sound.c @@ -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 |