• 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: Automatically initialising an AudioBufferList for input of data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatically initialising an AudioBufferList for input of data


  • Subject: Re: Automatically initialising an AudioBufferList for input of data
  • From: Cynthia Bruyns <email@hidden>
  • Date: Thu, 16 Jun 2005 12:13:56 -0700

Are you looking for is the AudioStreamBasicDescription?
file:///Developer/ADC Reference Library/documentation/MusicAudio/Reference/CoreAudio/core_audio_types/chapter_6_section_4.html



Message: 3
Date: Thu, 16 Jun 2005 23:11:42 +1000
From: Heath Raftery <email@hidden>
Subject: Automatically initialising an AudioBufferList for input of
    data

I am currently setting up my fInputBufferList by hand, based on trial  

and error. That's not particularly robust given the various  

fInputUnits I might be dealing with. The AudioDevice API has this,  

which appears to deal with the problem:


<code>

AudioDeviceGetPropertyInfo(fInputDeviceID, 0, YES,  

kAudioDevicePropertyStreamConfiguration, &theSize, NULL);

fInputBufferList = (AudioBufferList *)malloc(theSize);

AudioDeviceGetProperty(fInputDeviceID, 0, YES,  

kAudioDevicePropertyStreamConfiguration, &theSize, fInputBufferList);

</code>


But my fInputDeviceID properties are different to the output format  

of the fAudioUnit (specifically the data is deinterleaved inside the  

unit), so the fInputBufferList that comes back is fairly useless. I  

couldn't see anything in AudioUnit that might do what I want.



 _______________________________________________
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: Automatically initialising an AudioBufferList for input of data
      • From: Heath Raftery <email@hidden>
  • Prev by Date: Acquiring input Data
  • Next by Date: Re: audio sync problem
  • Previous by thread: Automatically initialising an AudioBufferList for input of data
  • Next by thread: Re: Automatically initialising an AudioBufferList for input of data
  • Index(es):
    • Date
    • Thread