Skip to contentSkip to conversation

Sound card word clocks.

DISCUSSION James Courtier-Dutton 1 participant 1 message Jan 3, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

I was wondering if it would be useful to let alsa-lib
1) read sound card word clocks. Do all sound cards have word clock registers? I know all Creative ones do.

2) set timer period interrupts based on the sound card's word clock.
This could make a call back similar to periods_elapsed(), which happens when a period interrupt happens.

They could possibly be used for a better alsa-lib resampler.

Another possible alternative could be a form of nanosleep() that auto repeats. I.e. the kernel causes a user-land callback every X nanoseconds. Does one exist in the kernel? I think a wordclock based callback would probably be more in sync with the sound card than a nanosleep() one.

James

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click