Hi all, lurker coming out to ask a question 
At my job, we're working on porting a massive system from HP-UX 10.20 to Red Hat Linux (I believe we're using Red Hat 7.2, kernel version 2.4.2). I've been tasked with porting the audio portion of our code. I initially tried to use the OSS library, but it doesn't appear to meet our needs very well.
The existing code is designed to receive audio data over a socket (in approximately 1/2 second units), place it into a circular queue in shared memory, and have a second process read from that queue and pass the data to the sound card.
The problem I'm running into is that, when the source of the audio data changes, the time it takes for the actual audio output to change can be as much as 15 seconds. At least some of that delay occurs after I attempt to clear the data that's already been written to /dev/dsp. OSS doesn't appear to have an effective way to cancel buffered data (I've tried SNDCTL_DSP_RESET - it simply doesn't work on our system, from what I can tell), or to query the amount of data remaining in the buffer.
On the HP platform, we're using HP's Aserver, and waiting for an AETDataNeeded event before passing the next half-second of data. This provides acceptable latency.
So, what I'm looking for is an audio library for Linux that meets the following requirements:
-Low latency
-Ability to clear out buffered data
-Ability to query the state of the buffer -OR- something similar to an AETDataNeeded event.
-Has drivers for the Creative SB Live! card.
-Has at least decent documentation - this is the first time I've ever done any audio coding.
If anyone has any suggestions (pref. with URLs), please reply
Thanks!
-Sbod
At my job, we're working on porting a massive system from HP-UX 10.20 to Red Hat Linux (I believe we're using Red Hat 7.2, kernel version 2.4.2). I've been tasked with porting the audio portion of our code. I initially tried to use the OSS library, but it doesn't appear to meet our needs very well.
The existing code is designed to receive audio data over a socket (in approximately 1/2 second units), place it into a circular queue in shared memory, and have a second process read from that queue and pass the data to the sound card.
The problem I'm running into is that, when the source of the audio data changes, the time it takes for the actual audio output to change can be as much as 15 seconds. At least some of that delay occurs after I attempt to clear the data that's already been written to /dev/dsp. OSS doesn't appear to have an effective way to cancel buffered data (I've tried SNDCTL_DSP_RESET - it simply doesn't work on our system, from what I can tell), or to query the amount of data remaining in the buffer.
On the HP platform, we're using HP's Aserver, and waiting for an AETDataNeeded event before passing the next half-second of data. This provides acceptable latency.
So, what I'm looking for is an audio library for Linux that meets the following requirements:
-Low latency
-Ability to clear out buffered data
-Ability to query the state of the buffer -OR- something similar to an AETDataNeeded event.
-Has drivers for the Creative SB Live! card.
-Has at least decent documentation - this is the first time I've ever done any audio coding.
If anyone has any suggestions (pref. with URLs), please reply
Thanks!
-Sbod