[raudio] Support basic capture streaming to speakers#5913
Open
Q-Wa-Ha wants to merge 3 commits into
Open
Conversation
This commit introduces basic streaming from a capture source (e.g. a microphone) to the device speakers. The playback format was changed from ma_format_f32 to ma_format_s32 to support capturing audio.
raysan5
reviewed
Jun 8, 2026
Author
|
I played around with the original f32 format some more and I think the issue I was originally having that caused me to change formats was with my own hardware. I was able to change the format back and leave the rest of the code alone, so hopefully there should be no more breaking changes. Note: There does seem to be an issue where the microphone output is being panned to one side only (and this has nothing to do with formats). I can try to fix this in a future PR, unless you would prefer it done now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces basic streaming from a capture source (e.g. a microphone) to the device speakers. The playback format was changed from ma_format_f32 to ma_format_s32 to support capturing audio.
Hopefully this commit can be a basis for future capture-related functionality
Note: I have tested this on Windows, macOS, and Linux.