-
Notifications
You must be signed in to change notification settings - Fork 146
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
Program hangs when overflow/underflow #17
Comments
After some more test, the problem does not occur so fast if I do not specify the devices and the sampling rate, and specify the latency in seconds (e.g. 0.02 s). It still occurs after sometimes. Also, when setting explicitly the buffer size
for example, then the audio is very choppy. |
Hmmm ... I don't really have a clue ... When you are working close to the limits of the hardware, strange things might happen, in that case you normally just have to choose more conservative settings. But first we'll have to find where and how this is happening. Can you probably add some debugging to your callback? Any other ideas? |
BTW, you don't have to specify the options twice if they are the same. Instead of sd.default.dtype = 'int16', 'int16' you can just use sd.default.dtype = 'int16' |
Hi thanks for the answer. Actually it seems I can make it work by cranking up the frequency of the CPU to 1GHz and recompiling the latest version of portaudio. Another quick quick question, is it possible to have different sampling rates for the input and output ? |
It's good to hear that it works.
This is a general PortAudio question, nothing specific to the Each "stream" can only have one sampling rate. |
Hello,
I am trying to run sounddevice on the beaglebone black board. I use the code below to test feedthrough. However, when the latency is set to low, or the buffer size is small, the program just hangs, rather than dropping a few frames and continuing. There is no error message either. Can I do something about it ?
Thanks you in advance.
The text was updated successfully, but these errors were encountered: