• 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
How to decode mData in AudioBuffer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to decode mData in AudioBuffer?


  • Subject: How to decode mData in AudioBuffer?
  • From: lbland <email@hidden>
  • Date: Thu, 27 Apr 2006 09:05:05 -0700

hi-

I want to get to the values from a microphone. I got all the way down to retrieving a AudioBufferList and thus AudioBuffer struct which contains the data, but the actual values are encoded in mData:

typedef struct AudioBuffer {
UInt32 mNumberChannels;
UInt32 mDataByteSize;
void* mData;
} AudioBuffer;


Is there a way to decode mData? Either directly or via a function that parses it into a known array type?


for example:

(UInt16 *) mData)[3]

for the 4th sample value in the buffer segment? (or (UInt16 *) mData) [7] for the 2nd channel 4th sample value in a interleaved stereo buffer, etc.

thanks!-

-lance

_______________________________________________
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


  • Prev by Date: Re: playing audio buffer content - Newbie question
  • Next by Date: atexit and kAudioDevicePropertyDeviceIsRunning problem
  • Previous by thread: Re: Detecting microphone activity
  • Next by thread: Re: How to decode mData in AudioBuffer?
  • Index(es):
    • Date
    • Thread