¡@

Home 

2014/10/15 ¤U¤È 10:10:19

iphone Programming Glossary: informatid

Data format from recording using Audio Queue framework

http://stackoverflow.com/questions/3963827/data-format-from-recording-using-audio-queue-framework

is the code which sets up the audio queue so you can see how it is configured. void AQRecorder SetupAudioFormat UInt32 inFormatID memset mRecordFormat 0 sizeof mRecordFormat UInt32 size sizeof mRecordFormat.mSampleRate XThrowIfError AudioSessionGetProperty.. size mRecordFormat.mChannelsPerFrame couldn't get input channel count mRecordFormat.mFormatID inFormatID if inFormatID kAudioFormatLinearPCM if we want pcm default to signed 16 bit little endian mRecordFormat.mFormatFlags kLinearPCMFormatFlagIsSignedInteger.. size mRecordFormat.mChannelsPerFrame couldn't get input channel count mRecordFormat.mFormatID inFormatID if inFormatID kAudioFormatLinearPCM if we want pcm default to signed 16 bit little endian mRecordFormat.mFormatFlags kLinearPCMFormatFlagIsSignedInteger..

Recording mp3 instead of caf file

http://stackoverflow.com/questions/9399019/recording-mp3-instead-of-caf-file

to kAudioFileMP3Type but it does not create the file. The code became void AQRecorder SetupAudioFormat UInt32 inFormatID memset mRecordFormat 0 sizeof mRecordFormat UInt32 size sizeof mRecordFormat.mSampleRate XThrowIfError AudioSessionGetProperty.. size mRecordFormat.mChannelsPerFrame couldn't get input channel count mRecordFormat.mFormatID inFormatID if inFormatID kAudioFormatLinearPCM if we want pcm default to signed 16 bit little endian mRecordFormat.mFormatFlags kLinearPCMFormatFlagIsSignedInteger.. size mRecordFormat.mChannelsPerFrame couldn't get input channel count mRecordFormat.mFormatID inFormatID if inFormatID kAudioFormatLinearPCM if we want pcm default to signed 16 bit little endian mRecordFormat.mFormatFlags kLinearPCMFormatFlagIsSignedInteger..