Re: Enumerations in AudioHardware.h
Re: Enumerations in AudioHardware.h
- Subject: Re: Enumerations in AudioHardware.h
- From: David Duncan <email@hidden>
- Date: Sun, 11 May 2003 11:08:13 -0400
On Sunday, May 11, 2003, at 10:16 AM, email@hidden wrote:
Good Morning,
I'm a newbie to coreaudio and to this list. I was looking through
AudioHardware.h and was looking through the enumerations to try and
figure out all the properties of the hardware layer. I ran across:
kAudioHardwarePropertyBootChimeVolumeScalar = 'bbvs',
// a Float32 between 0 and 1 that scales the volume of the boot chime
// across the full range of the device.
How can an enumerated value be a Float32?
Your confusing the enumeration with the data that it describes. What
the comment means is that in a call to the GetProperty() class of
functions, you would pass the enumeration value (in this case
kAudioHardwarePropertyBootChimeVolumeScalar) to tell the function what
data you want, and pass the location of a Float32 variable to store
that data.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.
David Duncan
_______________________________________________
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.