Skip to content

Play pending audio frames in fenster_audio.h instead of stopping playback immediately - #42

Open
jonasgeiler wants to merge 2 commits into
zserge:mainfrom
jonasgeiler:fix/drain-pcm-frames
Open

Play pending audio frames in fenster_audio.h instead of stopping playback immediately#42
jonasgeiler wants to merge 2 commits into
zserge:mainfrom
jonasgeiler:fix/drain-pcm-frames

Conversation

@jonasgeiler

@jonasgeiler jonasgeiler commented Mar 20, 2025

Copy link
Copy Markdown
Contributor

This will resolve audio cutting off after a program using fenster_audio.h finishes it's execution - a very simple fix that will greatly simplify the usage of the fenster_audio.h library.

I implemented this only for the Linux and Win32 version in this PR, because as far as I know the macOS version already worked this way, since inImmediate is set to false when calling AudioQueueStop(AudioQueueRef inAQ, Boolean inImmediate) at https://github.com/jonasgeiler/fenster/blob/1393ff82958532e3f8c5dfdf5b131c065cb513e7/fenster_audio.h#L78

This will resolve audio cutting off after a program using `fenster_audio.h` finishes it's execution - a very simple fix that greatly simplifies usage of the `fenster_audio.h` library.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant