Re: Proper behaviour when failing a PerformFormatChange or InputSelec torChange
Re: Proper behaviour when failing a PerformFormatChange or InputSelec torChange
- Subject: Re: Proper behaviour when failing a PerformFormatChange or InputSelec torChange
- From: Jeff Moore <email@hidden>
- Date: Wed, 23 Apr 2003 11:15:08 -0700
Returning an error is the right thing to do. Apps like AMS just update
their UI with what the user selected and don't bother to reset the GUI
to reflect that the settings did not in fact change. This would be a
bug in those apps and I recommend that you file the appropriate bugs.
On Wednesday, April 23, 2003, at 09:57 AM, Robert Penland wrote:
Though I try to prevent most of the bad cases, there are situations in
which
the user can make a selection (format or input source) that isn't
valid for
our core audio driver. The problem is that we don't know this until
after
the user has made the selection. What is the proper way fail a
PerformFormatChange or InputSelectorChange operation? Currently we
have
"pauseAudioEngine/beginConfigurationChange" and
"completeConfigurationChange/resumeAudioEngine" calls bracketing the
functions, but if the format or input selection isn't valid, should we
set
the hardware back to the last good state and do a
"cancelConfigurationChange/resumeAudioEngine"? If I just return an
error
from the function, most of the system level interfaces like the Sound
Preferences pane or the Audio/Midi setup application, do not reflect
the
fact that the operation returned an error. It will still show that the
selection has taken place.
Thanks,
Rob
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.