Getting Volume Controls
Getting Volume Controls
- Subject: Getting Volume Controls
- From: "bryan" <email@hidden>
- Date: Sat, 18 Sep 2004 11:56:40 -0700
I am using the Java CoreAudio classes, and I want to be able to read the
volume on the default input and output devices, but I am running into
problems:
// query for the input device -- succeeds
AudioDevice device = AudioHardware.getDefaultInputDevice();
// create a memory object to hold the Float32
CAMemoryObject propVal = new CAMemoryObject(4,true);
// query for the volume -- fails with kAudioHardwareUnknownPropertyError
device.getInputProperty(0,AHConstants.kAudioDevicePropertyVolumeScalar,propVal);
I have also tried to query for kAudioDevicePropertyVolumeDecibels with the
same result.
Any idea what I am missing?
Thanks,
Bryan
_______________________________________________
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