On Mon, Oct 8, 2012 at 8:24 AM, Maicon K. [email protected]
that maybe is something with the sample frequency.
There are two things to watch out for here.
First, you made the classic mistake of using a throttle and a hardware
block in the same flowgraph. The audio sink you have is the block that
will do your sample rate control. You do NOT need a throttle block.
It’s not even that the throttle is unnecessary, but it will screw up
your program. You have two clocks now competing for flow control. The
throttle block is just a very poor approximation of a flow control
based on the CPU and timers.
Second, you might want to specify the device in the audio sink. By
default, it’s likely that you are using the ASLA sink, which provides
no sample rate conversion. At 48 kHz, you might be ok. If you use
pulseaudio (in Ubuntu, this is available by default now), for the
‘Device name’ parameter in the audio sink’s options, you can use
Recreating your graph on my machine with these two changes worked fine.