On Sat, 6 Mar 2004, Giuliano Pochini wrote: > On the Echoaudio cards the sample rate is a global setting, so I need a way > to prevent an app to change the rate if someone else already set it (the > card han several devices/subdevices). I was thinking to put a simple > "if (IsAudioOpen()) rate_min=rate_max=current_rate;" in pcm_open callback, > but this solution is racy.
Yes, but I don't see a better solution for "auto" rate settings. Also, it would be probably good to create a control which can "fix" the rate to a value (ICE1712 driver already has this feature). > Also what am I supposed to do about external clock ? I can't read its > value and it teoretically can change at any moment. Yes, I return an error when the rate is other than agreed with application in the PDAudioCF driver. I think that it's only valid solution. But if you cannot obtain the rate from hardware, then it might be problematic. Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project, SuSE Labs ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel