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

Infinite loop if there are no RtAudio accessible devices #8

Open
kwhite-uottawa opened this issue Oct 10, 2024 · 0 comments
Open

Infinite loop if there are no RtAudio accessible devices #8

kwhite-uottawa opened this issue Oct 10, 2024 · 0 comments

Comments

@kwhite-uottawa
Copy link

If there are no available audio devices, then MySound::SetAudioDevice enters an infinite loop. I do sometimes use LoopAuditioneer on a VM without any sound to try some bulk operations.

https://github.com/GrandOrgue/LoopAuditioneer/blame/bbf77ee4467148f42b40e34958f587a90b63a256/src/MySound.cpp#L74

Perhaps something like this (untested):

  if (m_audio->getDeviceCount() > 0) SetAudioDevice(m_audio->getDefaultOutputDevice());

But even doing nothing works for me (tested):

  // SetAudioDevice(m_audio->getDefaultOutputDevice());

Season to taste.

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

No branches or pull requests

1 participant