Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Realtime: complete port of fixes and tests for sendinputaudio behavior #333

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

trrwilson
Copy link
Collaborator

The changes in #303 were incompletely migrated into #301. This PR completes the functional migration and remedies the remaining bug with SendInputAudioAsync(BinaryData).

Most importantly: the boolean sentinel for audio sending is only set and reset when sending a stream, while single-payload sends are fully locked.

This is more efficiently and elegantly accomplished via a SemaphoreSlim (with a wrapping pair of extension methods to simplify the try/finally patterns).

Test coverage that validates intended behavior was also ported.

@trrwilson trrwilson merged commit 1cf176b into main Dec 3, 2024
4 checks passed
@trrwilson trrwilson deleted the user/travisw/rt-send-audio-lock-improvements branch December 3, 2024 19:14
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.

2 participants