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

Closing the audiostream hangs the process #3

Open
alxx opened this issue Jun 27, 2019 · 1 comment
Open

Closing the audiostream hangs the process #3

alxx opened this issue Jun 27, 2019 · 1 comment

Comments

@alxx
Copy link

alxx commented Jun 27, 2019

Hi,

Calling the .close method on the AudioStream causes my process to hang, unresponsive even to Ctrl-C. I have to kill it.

I'm using the Speaker example code, with the simple addition of this method in the Speaker module:

  def close
    @@stream.close
  end

Then I call Speaker.close at the end of the example (instead of muting it).

@alxx
Copy link
Author

alxx commented Jun 27, 2019

I now notice it doesn't happen all the time -- about one time in five. I'm running this on a Mid-2011 MacBook Air running High Sierra 10.13.6 with ruby 2.6.2 and portaudio 19.6.0 installed via homebrew.

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