>I would like to use the sound card as a clock source for a DVD player. >I have a SB Live with alsa drivers 0.9.x. > >Which API call can I make to the sound card which is equivalent to the >gettimeofday call? >Also, what will be the units of time received from the call?
there is no direct API call that is equivalent. how you would do this would depend a great deal on whether you are actually going to do audio i/o via the audio interface as well. if you are, you can keep track of time by counting the number of frames you read/write from/to the device. if you are not, its more complicated. why not use the RTC instead? for that matter, what's wrong with gettimeofday()? its more accurate that the SB Live crystal clock, for a start ... --p _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel