Fix T39607: Audio not in synch when the blend file loads.
Root of issue is probably in AUDASPACE itself (or even in OpenAL?). Issue not present with SDL backend, only OpenAL afaik. For now, workaround in Blender is to call seek twice when starting play (not needed when resuming from pause).
This commit is contained in:
parent
08de05f3db
commit
9f17300d37
Notes:
blender-bot
2023-02-14 12:01:57 +01:00
Referenced by issue #39607, Audio not in synch when the blend file loads.
|
@ -559,12 +559,15 @@ void sound_play_scene(struct Scene *scene)
|
|||
|
||||
status = scene->sound_scene_handle ? AUD_getStatus(scene->sound_scene_handle) : AUD_STATUS_INVALID;
|
||||
|
||||
if (status == AUD_STATUS_INVALID)
|
||||
if (status == AUD_STATUS_INVALID) {
|
||||
sound_start_play_scene(scene);
|
||||
|
||||
if (!scene->sound_scene_handle) {
|
||||
AUD_unlock();
|
||||
return;
|
||||
if (!scene->sound_scene_handle) {
|
||||
AUD_unlock();
|
||||
return;
|
||||
}
|
||||
|
||||
AUD_seek(scene->sound_scene_handle, cur_time);
|
||||
}
|
||||
|
||||
if (status != AUD_STATUS_PLAYING) {
|
||||
|
|
Loading…
Reference in New Issue