Repository navigation
Add pause callbacks for coreaudio - #8147
Conversation
|
Please use one of our template options under "Types of changes" so that we can more easily categorize this PR. |
Done. |
|
On the whole this seems to work as advertised - I guess the issue this fixes is the VLC source not being able to feed new data fast enough before the |
|
If I remember correctly |
|
IIRC The buffers are filled via |
|
Final thing before we can merge this:
|
|
Combined commits. Hope commit naming is correct. |
RytoEX
left a comment
There was a problem hiding this comment.
Final nit: the first commit message subject is too long.
Please reword the commit message so that the commit message subject is no longer than 72 characters. Ideally, the commit message subject text after "libobs: " would be 50 characters or less. For additional detail, you can add a commit message body.
|
Reworded the first commit. |
|
Just a friendly reminder that this PR is ready for merge. |
We're aware of this PR, thank you. We'll merge it when we have time to circle back around to it and re-review it and find that it's good to merge. |
|
Please rename the first commit - it should say something like "libobs: Add pause callback support for sources" because the current title doesn't seem to make sense given the changes. The second commit should probably be called something like "libobs: Add use of pause callbacks to CoreAudio monitoring". |
|
Renamed commits, rebased the branch. |
|
This was merged and is part of release versions, what you are experiencing is probably unrelated. |
|
#3410 isn't closed. |

Description
When playing VLC source on MacOS audio starts lagging after pause, stop or timeline seeking actions.
This is caused by VLC delaying the call to
buffer_audio()callback. After each pause or stop the delay keeps adding up resulting in audio lag.This change is adding an additional callback for "media_pause" and "media_stop" events to clean the
monitor->new_databuffer and prevent audio data accumulation caused by VLC callback delay.Motivation and Context
Fixes issue #7552
How Has This Been Tested?
Tested on MacBook Air M1 with different files in multiple sources including VLC
Types of changes
Checklist: