• 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
Best Way To Get Audio Input?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Best Way To Get Audio Input?


  • Subject: Best Way To Get Audio Input?
  • From: Wesley Miaw <email@hidden>
  • Date: Wed, 22 May 2002 15:31:20 -0700

I am trying to get audio from the default audio input device and convert it to match a specific AudioStreamBasicDescription. Is there some way to do this without using HAL, and instead something higher-level like AudioUnits? It is extremely easy to open the default audio output unit to playback arbitrary audio data, given its AudioStreamBasicDescription. But I don't see any extremely easy way to do it for audio input.

Right now, it looks like my best option is to use a combination of HAL and AudioUnits. HAL to retrieve the audio data from the input using an AudioIOProc, and an AudioUnit of sub-type FormatConverter to convert from one description to another (with its input callback designed to read the data retrieved by the AudioIOProc). However, I don't know what extra interface the FormatConverter sub-type provides. I cannot find anything when I search for FormatConverter at ADC.

The reason I am looking at an AudioUnit to provide the conversion is because I cannot get AudioConverterConvertBuffer or AudioConverterFillBuffer to work correctly in translating from one description to another (it did not resample correctly, or returned an error code).

But is this combination of HAL and AudioUnits the best/easiest way to go about doing this? BTW-I'm working on the Mbone audio tool vat.

Thanks,
--
Wesley Miaw
Berkeley Multimedia Research Center
_______________________________________________
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.

  • Prev by Date: Re: Midi console printing solved but not resolved
  • Next by Date: : Strange USB-MIDIMAN Problem, help badly needed !
  • Previous by thread: Re: Midi console printing solved but not resolved
  • Next by thread: : Strange USB-MIDIMAN Problem, help badly needed !
  • Index(es):
    • Date
    • Thread