• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Question about output data streaming
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • RE: Question about output data streaming
      • From: "David Tan" <email@hidden>
References: 
 >Question about output data streaming (From: "David Tan" <email@hidden>)

  • Prev by Date: Re: Strange error son 2.1 with CoreAudio
  • Next by Date: What is this notice in log after I call AudioFileStreamParseBytes
  • Previous by thread: Question about output data streaming
  • Next by thread: RE: Question about output data streaming
  • Index(es):
    • Date
    • Thread