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.

@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

@EvergreenTheTree
Copy link
Author

I'll see about contributing an update to RtAudio 6.0.1 on msys2's end; based on the PKGBUILD it seems like it should be relatively straightforward. Also, the Linux build is failing due to what appears to be a missing dependency (curl specifically). Is that something that needs to be fixed too?

@danoli3
Copy link
Member

danoli3 commented Jul 4, 2024 via email

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.
@EvergreenTheTree
Copy link
Author

EvergreenTheTree commented Jul 4, 2024

Rebased; also made a pull request for updating RtAudio in msys2: msys2/MINGW-packages#21319

UPDATE: the msys2 rtaudio 6.0.1 package update has now been merged and is in the repository.

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