RE: concerning external clocking and stream format notification
RE: concerning external clocking and stream format notification
- Subject: RE: concerning external clocking and stream format notification
- From: Philip Lukidis <email@hidden>
- Date: Wed, 19 Oct 2005 15:54:22 -0400
As it turns out, I was not calling setFormat. It was this function which
notified the clients. Also, I had to follow the technique shown in
the onboard sound example where the audio engine had to be paused, and
call beginConfigurationChange() before clearing the formats, and
adding new ones.
The onboard sound sample shows this nicely.
Philip Lukidis
-----Original Message-----
From: Philip Lukidis
Sent: Tuesday, October 18, 2005 6:10 PM
To: email@hidden
Subject: concerning external clocking and stream format notification
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:
m
This email sent to email@hidden
_______________________________________________
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