9 May
2008
9 May
'08
4:10 p.m.
On Thu, 10 Apr 2008, Lennart Poettering wrote:
buffer mananagement - I think we already discussed this - use sw_params or PCM timer to be updated when buffer position changes (interrupt was processed), you can use poll() as well
I am doing this now. I'd still love to see an API for naked interrupts, though.
I've added snd_pcm_sw_params_set_period_event() function to ALSA API now. Actually, it uses PCM timer internally, but at least public API is defined so applications are not forced to use PCM timers explicitly. We can optimize this feature later.
Jaroslav
----- Jaroslav Kysela perex@perex.cz Linux Kernel Sound Maintainer ALSA Project, Red Hat, Inc.