diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-08-25 10:12:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 10:12:25 +0200 |
commit | fa8006477918a7c22c9d46db199d7cc4d238856e (patch) | |
tree | 0ec79e3d7f36c48d916bf9acd362e986ff6fb26f /drivers/coreaudio | |
parent | 0a5f5c85584df93863f9aed50a1ae3e1aa18f932 (diff) | |
parent | 9d546bf05a31e46f21077de3718d369ee7660b59 (diff) |
Merge pull request #64607 from RandomShaper/safe_audio_threading
Diffstat (limited to 'drivers/coreaudio')
-rw-r--r-- | drivers/coreaudio/audio_driver_coreaudio.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/coreaudio/audio_driver_coreaudio.cpp b/drivers/coreaudio/audio_driver_coreaudio.cpp index 51fb1f99e0..1db85e2a60 100644 --- a/drivers/coreaudio/audio_driver_coreaudio.cpp +++ b/drivers/coreaudio/audio_driver_coreaudio.cpp @@ -215,6 +215,7 @@ OSStatus AudioDriverCoreAudio::input_callback(void *inRefCon, } ad->lock(); + ad->start_counting_ticks(); AudioBufferList bufferList; bufferList.mNumberBuffers = 1; @@ -237,6 +238,7 @@ OSStatus AudioDriverCoreAudio::input_callback(void *inRefCon, ERR_PRINT("AudioUnitRender failed, code: " + itos(result)); } + ad->stop_counting_ticks(); ad->unlock(); return result; |