Sound problem under Suse Linux 9.3 (ALSA 1.0.9), RME Hammerfall DSP Multiface
David Oswald <oswald84 <at> googlemail.com>
2005-08-12 14:10:51 GMT
Hi all,
I'm experiencing rather strange sound problems with the latest
Portaudio Developer Version 1.9 under Suse Linux 9.3, using ALSA 1.0.9
on an RME Hammerfall DSP Multiface (driver is hdsp, tool used:
hdsploader/hdspmixer).
When using e.g. arecord -f cd test.wav and aplay test.wav, everythings
works fine, the data are recorded and played back without any problem.
Now I've made a very basic test using PA similar to patest_wire. It
just passes through one mic input to output. However, it seems that
some parts (end or start) of the incoming buffers are somehow
corrupted, since you hear drops/pops expecially with sound of higher
frequency (e.g. when you whistle). These problems are somehow
proportional to the buffer size (when you have very large buffers, the
frequency in which drops/pops occur is lower than with very short
buffers)...
Compiling and Running the same app under WinXP using the same PA
snapshot and the same Hammerfall (ASIO driver), I do not experience
these problems. Again back under Linux, the sample patest_wire suffers
from the same problem, so I assume it's not a problem of my code or
ALSA (since arecord/aplay work fine), but something related to
portaudio. Does anyone of you have an idea what's going wrong here??
FYI: The app uses paFloat32 sample format, 32000 khz sample rate;
buffer size is 1024, non-interleaved. The callback function looks like
this:
int audioCallback(const void *inputBuffer, void *outputBuffer,
unsigned long framesPerBuffer, const PaStreamCallbackTimeInfo*
outTime, PaStreamCallbackFlags flags, void* data)
{
(Continue reading)