Java: get Stream Configuration
Java: get Stream Configuration
- Subject: Java: get Stream Configuration
- From: Gerd Castan <email@hidden>
- Date: Sat, 25 May 2002 09:41:47 +0200
Hi everyone,
I don't get the first step to read data from an audio device in Java.
One of the first step I have to do in a clean code (says coreaudio.pdf)
is to get the properties of
AHConstants.kAudioDevicePropertyStreamConfiguration
Documentation (coreaudio.pdf) says the return values are stored in a
com.apple.audio.util.AudioBufferList.
But in the Java api I don't find a listener that gives me an object
of this class or superclass. (Finding such a listener is a hard
task since an apple ingeneer decided to turn of class-use when
building the javadocs)
So the next possibility to get my information is to pull it. code
could resemble to
AudioBufferList audioBufferList = new AudioBufferList();
inputDevice.getInputProperty (AHConstants.kAudioPropertyWildcardChannel,
AHConstants.kAudioDevicePropertyStreamConfiguration,audioBufferList);
There is a little problem with this approach: Apple chose not to provide
a public constructor for AudioBufferList so I can't instantiate an
object that could hold the returned data.
I didn't find a creator for such an object (no class-use, see above).
I don't have any idea how to get kAudioDevicePropertyStreamConfiguration
Any suggestions?
Thanks,
Gerd
_______________________________________________
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.