Low sound latency with sounddevice module & wdm-ks driver

yes, it uses portaudio; I thought, that the reason might be that portaudio is compiled in a different way (the portaudio.dll, which is bandled with sounddevice is quite smaller than the one with pyo), but I tried out pyo with this dll and there was a latency of 50ms as well, so it doesn’t have to do anything with the way portaudio was compiled, I think.

sounddevice seems just to work. The sound is accessed as numpy arrays so it’s easy to increase the volume as well.

By the way I’ve also tried out the portaudio.dll (with asio), which is compiled by
the guys from psychtoolbox with some small changes, but the performance was basically
the same. So I have tried out quite some things and this was the best option.

I thought about using pyaudio originally and I’ve compiled portaudio with wdm-ks etc. for this purpose, but wasn’t able to compile pyaudio itself. Then I came accross sounddevice and I’m still amazed by its good performance on Win7.

2016-08-22 19:09 GMT+02:00 Jon Peirce <psychopy@discoursemail.com>:

jon

August 22

Sounds good if that's working for you. I'd love to see something working well especially something that's easier and more robust than pyo. And this supports Python3 which is a bonus too (pyo is one of the libs holding us back to py2)

I can't see the way that sounddevice accesses the wdm drivers - it looks like it simply uses portaudio again - makes it more surprising that the performance is better again.


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

1 Like