I help develop the xine media player in linux. http://xine.sf.net
For audio/video sync, we do not use any timer on the sound driver. We use a concept of delay. This delay value is a measure of time between "Sample being placed in the audio buffer now" and "Sample being output to speakers". 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. Cheers James > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Ulrich Zadow > Sent: 06 March 2002 16:23 > To: [EMAIL PROTECTED] > Subject: [Alsa-devel] Timer? > > > Hi, > > we've converted our app from OSS to ALSA in 3 days(!). It's > working beautifully, we just need to get time support running again... > > Is there any documentation on the timer api that goes beyond > what's on the alsa-project pages? We're trying to sync Video and > Audio, and all we need is a way to query the current time > relative to some arbitrary start point. > > Regards, > > Uli > > _______________________________________________ > Alsa-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/alsa-devel _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel