Sound Going Wrong
Hi,
I have written a sound server using ALSA drivers which samples stereo sound at 16khz and writes each channel to a unix pipe. I am using a sonogram to display the sound (which simply reads the pipe). Occasionally I get buffer underruns which I have put a fix in so that the sound server recovers. Most of the time the sonogram displays the sound as it should but I have noticed that if I leave the soundserver and sonogram on for a long period (in the region of a day but the length of time varies) the sonogram displays extra horizontal lines and I know it isn't right. If I stop and restart the soundserver these extra horizontal lines go away and the thing carries on as normal. There has also been a situation when these horizontal lines have been present but they went away by themself (without having to stop and restart) ... almost as if something went back in to sync.
Just wondered if anybody had any insight as to what could be happening because I haven't. And it's difficult to de-bug as the problem occurs so rarely.
Regards,
Pete
Quoted 2 lines
I have written a sound server using ALSA drivers which samples stereo = sound at 16khz and writes each channel to a unix pipe. I am using a =
[ ... ]
Quoted 3 lines
Just wondered if anybody had any insight as to what could be happening = because I haven't. And it's difficult to de-bug as the problem occurs = so rarely.
1) do you have a low latency kernel? how many channels are you capturing? is your process running with regular priority?
2) see jackit.sf.net. the capture client will do what you want, and works correctly, unlike most other examples of how to record data from an audio interface.
explaining how to do this right with native ALSA will probably take more time than to get up and running with JACK :)
--p (an optimist)
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf