concerning external clocking and stream format notification
concerning external clocking and stream format notification
- Subject: concerning external clocking and stream format notification
- From: Philip Lukidis <email@hidden>
- Date: Tue, 18 Oct 2005 18:10:24 -0400
Hi. I have a problem which I cannot explain. It is my goal that when I
select an external clock source for my audio device that I expose only that
sample rate to clients, as opposed to the full range of standard supported
sample rates for internal clock.
In order to do this, I call clearAvailableFormats() on each stream, and then
call addAvailableFormat() on each stream but with only the correct sample
rate(s). I see that addAvailableFormat() notifies clients of the change
(the setProperty() call, if I understand it correctly). It works, except in
one case: if I am on internal clock at sample rate X, and select an external
source with sample rate X, and if the audio/midi properties dialog is open I
see no change in its display (all sample rates are displayed, not the
external one). However, if I close and reopen the dialog, I see that only
the supported sample rate of the external clock is displayed. However, if I
am on internal clock with sample rate X, and I select a source with external
sample rate Y, then even if the audio/midi properties dialog is open, it has
been updated with the correct external rate.
Can anyone explain this? Perhaps I am mistaken about setProperty() calls
being a proper notification to clients?
thanks,
Philip Lukidis
_______________________________________________
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