Skip to content

Infinite loop if there are no RtAudio accessible devices #8

Description

@kwhite-uottawa

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions