Re: Question about output data streaming
Re: Question about output data streaming
- Subject: Re: Question about output data streaming
- From: Jeff Moore <email@hidden>
- Date: Wed, 07 Jan 2009 12:49:45 -0800
Yup. That's pretty much how it all works. You can see an example of this in the AudioReflectorDriver in our SDK.
On Jan 7, 2009, at 7:57 AM, David Tan wrote: I got a general question about the data streaming of IOAudioEngine::clipOutputSamples(const void *inMixBuf, void *sampleBuf, UInt32 firstSampleFrame, UInt32 numSampleFrames, const IOAudioStreamFormat *streamFormat, IOAudioStream *audioStream) Please correct me if there’s any misunderstanding of this method. Firstly I generate a binary file with data from value 0 to 65535. Then I used Audacity to convert this raw data file to a wave file. I checked the wave in Audacity and it looks like an ascending incline. While playing this WAV file, these data will be transmitted to kernel driver via CoreAudio. What we get in kernel audio driver will be float data in inMixBuf (firstSampleFrame indicate the first valid data we should process in it). We should convert these float data into integer data before we send them to the device. After the conversion completes, we’ll get actual integer data 0-65535. Is that correct? Thanks a lot!
--
Jeff Moore Core Audio Apple
|
_______________________________________________
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