Hi,
I have been updating the wine alsa driver to work better with alsa.
So far, all I have done is update it to use the new alsa api.
Windows uses an api called Direct Sound.
Direct Sound uses direct hardware buffer access.
A Win32 program can quiry the sound driver and ask for the currently
James, I don't know if this is of any help, but you could always have a
peek at the PortAudio (www.portaudio.com) code (pa_linux_alsa.c). We don't
use snd_pcm_async_handler though, but implement async and blocking IO
ourselves.
Hope this helps
Arve Knudsen
On Thu, 06 May 2004 18:15:56
That's my app does:
1.- Open the device for capture
2.- Set the access mode SND_PCM_ACCESS_RW_INTERLEAVED
3.- Set format 16 bits (SND_PCM_FORMAT_S16_LE)
4.- Set channels 2 (stereo)
5.- Set buffer time near 1 second
6.- Set period time near 0.1 seconds
7.- Copy the hardware params to alsa
8.- Set
On Fri, May 07, 2004 at 12:30:00AM +0200, Arve Knudsen wrote:
James, I don't know if this is of any help, but you could always have a
peek at the PortAudio (www.portaudio.com) code (pa_linux_alsa.c). We don't
use snd_pcm_async_handler though, but implement async and blocking IO
Juan Carlos Granda wrote:
That's my app does:
1.- Open the device for capture
2.- Set the access mode SND_PCM_ACCESS_RW_INTERLEAVED
3.- Set format 16 bits (SND_PCM_FORMAT_S16_LE)
4.- Set channels 2 (stereo)
5.- Set buffer time near 1 second
6.- Set period time near 0.1 seconds
7.- Copy the
tor, 06.05.2004 kl. 20.15 skrev James Courtier-Dutton:
I have been updating the wine alsa driver to work better with alsa.
So far, all I have done is update it to use the new alsa api.
Windows uses an api called Direct Sound.
I think this problem has been discussed on this list before, with
Kernel people: is poll() less effective than using SND_PCM_ASYNC and a
signal handler for low-latency sound? I'm guessing it is, but there
at the risk of endlessly repeating myself, SIGIO is basically
useless. your handler executes in signal-handling context, and can do
very, very little. not
On Thu, May 06, 2004 at 09:49:31PM -0400, Paul Davis wrote:
at the risk of endlessly repeating myself,
If you're being asked this frequently, I'd recommend adding some notes to
the documentation, recommending using poll() and not SND_PCM_ASYNC, and
offering a brief explanation like this one.