Re: Changing nominalSampleRate considered harmful?
Re: Changing nominalSampleRate considered harmful?
- Subject: Re: Changing nominalSampleRate considered harmful?
- From: Lubor Prikryl DS <email@hidden>
- Date: Mon, 21 Jul 2008 19:19:13 +0200
Hi Mike,
It is the proper behavior. Core Audio is multi-client, so if one audio
application is running, the other should not automatically change
sample rate of the same device.
For pro audio applications, a sample rate selector should be provided
in audio preferences.
For other apps, sample rate of the device should not be changed
without user's intention.
For both, you may ask Core Audio to open the device Control Panel
(e.g. Audio MIDI Setup for built in audio)
err = AudioDeviceGetProperty(mInputDevice.mID, 0, 1,
kAudioDevicePropertyConfigurationApplication, &propertySize,
&cp1location);
where user can set the desired sample rate.
Lubor
On 21.7.2008, at 17:39, Mike Kluev wrote:
I've noticed that neither iTunes nor QuickTime Player changes
playing rate before playing music. That means they will happily
play music/movie on, whatever rate is currently set for the
device (say, 8kHz), even if the device supports higher rates
(say 48kHz). Even after logout/restart! Is that good user
experience? How user is supposed to change the rate (e.g. if
he suddenly wants to hear better quality music)? There are no
controls for it in Sound preference panel, nor in the apps'
preferences, and average user doesn't (and shouldn't) know
what HALLab is. Is my app supposed to do the same (do not
change sample rate) because it is bad (why)?
Mike
_______________________________________________
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