• 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
Question on ExtAudioFileRead and AudioBuffer for iPhone SDK
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question on ExtAudioFileRead and AudioBuffer for iPhone SDK


  • Subject: Question on ExtAudioFileRead and AudioBuffer for iPhone SDK
  • From: Calvin Xia <email@hidden>
  • Date: Wed, 16 Jun 2010 04:11:28 +0800

I'm new to iPhone development and am developing an iPhone app that uses the Extended Audio File Services. I try to use ExtAudioFileRead to read the audio file, and store the data in an AudioBufferList structure.

AudioBufferList is defined as:

struct AudioBufferList {
UInt32      mNumberBuffers;
AudioBuffer mBuffers[1];
};
typedef struct AudioBufferList  AudioBufferList;
and AudioBuffer is defined as

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

I want to manipulate the mData but I wonder what does the void* mean. Why is it void*? How can I decide what data type is actually stored in mData? _______________________________________________
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 on ExtAudioFileRead and AudioBuffer for iPhone SDK
      • From: Douglas Scott <email@hidden>
  • Prev by Date: Re: Audio Unit Cocoa View controls
  • Next by Date: Re: long double data type
  • Previous by thread: Re: RemoteIO Audio File Playback Issues
  • Next by thread: Re: Question on ExtAudioFileRead and AudioBuffer for iPhone SDK
  • Index(es):
    • Date
    • Thread