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

Use getDeviceIds function to list audio devices instead of relying on contiguous IDs #8017

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

EvergreenTheTree
Copy link

@EvergreenTheTree EvergreenTheTree commented Jun 12, 2024

Fixes #8013

As of RtAudio 6.0.0 you cannot assume that devices will fall in the range [0, getDeviceCount() - 1]. Doing so will potentially cause errors or out of bounds array accesses depending on the platform.

I am not super familiar with this project, but as far as I can tell I couldn't find any documentation or example projects that would need to be updated as a result of this change. However, I do know of at least two projects (audiostellar and ofxPDSP) that make this assumption, so it is definitely worth noting in the change log.

As of RtAudio 6.0.0 you cannot assume that devices will fall in the
range [0, getDeviceCount() - 1]. Doing so will potentially cause errors
or out of bounds array accesses depending on the platform.
@danoli3
Copy link
Member

danoli3 commented Jun 25, 2024

msys2:
mingw-w64-ucrt-x86_64-rtaudio
using 5.2.0-1 for some reason...

macOS will be fixed for 6.0.1 after merge of #7889

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.

ofSoundStream broken with RtAudio 6.0.0
2 participants