IOS Audioデータ構造説明
2962 ワード
struct AudioStreamBasicDescription {
Float64 mSampleRate; //44100; ( = 8000)
UInt32 mFormatID; //kAudioFormatLinearPCM;
UInt32 mFormatFlags;//kLinearPCMFormatFlagIsSignedInteger | kLinearPCMFormatFlagIsPacked;
UInt32 mBytesPerPacket; // packet , packet 0;(format.mBytesPerFrame * format.mFramesPerPacket)
UInt32 mFramesPerPacket; //packet frame , 1, , ACC 1024。
UInt32 mBytesPerFrame; //(format.mBitsPerChannel / * format.mChannelsPerFrame);
UInt32 mChannelsPerFrame; //frame channel // 1: ;2:
UInt32 mBitsPerChannel; //16; //
UInt32 mReserved; //
};
AudioStreamBasicDescription format; // ,
memset(&format, 0, sizeof(format));