• 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: Reading audio data from device as kAudioFormatULaw
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading audio data from device as kAudioFormatULaw


  • Subject: Re: Reading audio data from device as kAudioFormatULaw
  • From: Jeff Moore <email@hidden>
  • Date: Mon, 28 Nov 2005 11:40:40 -0800

At the HAL level, you are dealing with the device on the device's terms. This means the only formats you can use are the ones the device supports.

The right thing to do is to take the audio you get in your IOProc, copy it to a buffer, and in another thread, use an AudioConverter to encode the audio into the format you want to send over the network.


On Nov 20, 2005, at 9:40 PM, Matt Shepherd wrote:

I'm working on an application that should read audio data (sampling rate 8 kHz, mu-law format) from the PowerBook's built-in microphone and then send it out over the network.

I've managed to find some documention on how to use AudioDeviceAddIOProc and AudioDeviceStart. I believe that I have that working correctly with the default format. I've tried changing the format property on the stream and the device to kAudioFormatULaw, but no luck. I only get unsupported format errors.

Is it possible to read the data this way? Is there different way to set the format?


--

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
References: 
 >Reading audio data from device as kAudioFormatULaw (From: Matt Shepherd <email@hidden>)

  • Prev by Date: AUTimePitch -- edge artifacts
  • Next by Date: Re: SDK 1.4.3 Compile error
  • Previous by thread: Reading audio data from device as kAudioFormatULaw
  • Next by thread: AudioConverterFillComplexBuffer return codes
  • Index(es):
    • Date
    • Thread