I've been working in a project with "Sounddevice 0.3.6" module and Python for proposing an active noise cancellation system. For this specific application, I needed to precisely output a signal with same frequency of the input signal. That is when I came across some problems with the Stream class of Sounddevice. Here is the problem:
Let's take the simple "wire.py" example given in Sounddevice's documentation.
(http://python-sounddevice.readthedocs.io/en/0.3.6/examples.html)
This routine basically gets the input and passes to the output of the stream.
By doing so, I did generate a fixed sine wave as the input to pass through. However, I get a sine wave of slightly different frequency as output. It is a small difference in frequency (~1 Hz) that I could ensure checking with an oscilloscope.
I wonder what may cause this problem, since it's a simple pass-through routine.