Re: Limiting available sample rates
Re: Limiting available sample rates
- Subject: Re: Limiting available sample rates
- From: Robert Bielik <email@hidden>
- Date: Fri, 16 Sep 2011 16:24:59 +0200
Hello Vyacheslav,
Vyacheslav Matyushin skrev 2011-09-16 16:17:
I guess you add available formats using IOAudioStream::addAvailableFormat() inside the driver.
There is also method IOAudioStream::clearAvailableFormats().
I haven't tried this myself but perhaps using this two methods you can change supported formats dynamically.
So if I would first clearAvailableFormats then do addAvailableFormat with min & max samplerate set to same value, I'd be able to add f.i. 44100 and 96000 but nothing in between ? Ok, sounds like an approach to test! :)
Thank you,
/Rob
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden