Using AudioDeviceRead?
Using AudioDeviceRead?
- Subject: Using AudioDeviceRead?
- From: Dirk Musfeldt <email@hidden>
- Date: Tue, 18 Feb 2003 16:04:52 +0100
Hi all,
I'm trying to do some kind of soft play through with the default input
device. I try to call AudioDeviceRead in the callback.
This is roughly what I do:
AudioDeviceStart();
AudioDeviceGetProperty( ..., kAudioDevicePropertyStreamConfiguration, ... );
AllocBuffer();
AudioDeviceSetProperty (... kAudioDevicePropertyRegisterBufferList ...);
I set the AudioUnitInputCallback with kAudioUnitProperty_SetInputCallback.
Within my callback I do
AudioDeviceRead(mDevice, &stamp, mReadBuffer);
but that constantly returns kAudioHardwareIllegalOperationError.
Where is the error? How do I have to prepare the audio device?
With kind regards
Dirk Musfeldt
Meilenstein Mac OS Software
Neue Strasse 5
D-31582 Nienburg
Germany
Tel: +49 (0) 5021 91 24 44
Fax: +49 (0) 5021 91 24 45
<
http://www.meilenstein.de/>
_______________________________________________
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.