Skip to content
New issue

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

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

Already on GitHub? # to your account

Audio API Improvements #36

Open
revmischa opened this issue Oct 23, 2024 · 0 comments
Open

Audio API Improvements #36

revmischa opened this issue Oct 23, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@revmischa
Copy link
Owner

The audio API changed quite a bit in SDL3.

I tried rearranging some things including how to open streams with callbacks and devices. I think the callback form is still pretty important for opening recording streams, since you need a callback to be called when audio data is received. Filling the audio buffer for playback is more reasonable without a callback.

Need to re-think how locking should work, what methods belong on AudioSubsystem vs. AudioDevice vs. AudioStream etc.

Open to suggestions/ideas.

I'm trying to make use of the recording stream API in a real-world example here: projectM-visualizer/frontend-sdl-rust#10 and trying to adjust the API to suit my needs.

@revmischa revmischa added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Oct 23, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant