> -----Original Message----- > From: Paul Davis [mailto:[EMAIL PROTECTED]] > Sent: 06 March 2002 17:27 > To: James Courtier-Dutton > Cc: Ulrich Zadow; [EMAIL PROTECTED] > Subject: Re: [Alsa-devel] Timer? > > > >The delay value is calculated from getting the amount of samples still in > >the sound buffer. > >See the "ao_alsa_delay" function is > >"xine-lib/src/audio_out/audio_alsa_out.c" > > > >So if the delay is 100 ms. > >You have to place samples in the audio buffer 100ms before you > wish to hear > >them. > > Not quite right. > > You have to put the samples in the buffer when its time to put them > there. The audio interface will tell you when its time to do that by > sending you an interrupt, which in POSIX terms means your app will > wake up from poll(2) if it was waiting on the relevant file > descriptor(s). You can then deliver the data.
Our app does not use poll or anything like it. It does not get woken up by the audio device. Look at our source code. Cheers James _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel