iphone Programming Glossary: xthrowiferror
Data format from recording using Audio Queue framework http://stackoverflow.com/questions/3963827/data-format-from-recording-using-audio-queue-framework UInt32 inFormatID memset mRecordFormat 0 sizeof mRecordFormat UInt32 size sizeof mRecordFormat.mSampleRate XThrowIfError AudioSessionGetProperty kAudioSessionProperty_CurrentHardwareSampleRate size mRecordFormat.mSampleRate couldn't get.. size mRecordFormat.mSampleRate couldn't get hardware sample rate size sizeof mRecordFormat.mChannelsPerFrame XThrowIfError AudioSessionGetProperty kAudioSessionProperty_CurrentHardwareInputNumberChannels size mRecordFormat.mChannelsPerFrame.. 1 And here's part of the code which actually sets it up SetupAudioFormat kAudioFormatLinearPCM create the queue XThrowIfError AudioQueueNewInput mRecordFormat MyInputBufferHandler this userData NULL run loop NULL run loop mode 0 flags mQueue..
Recording mp3 instead of caf file http://stackoverflow.com/questions/9399019/recording-mp3-instead-of-caf-file UInt32 inFormatID memset mRecordFormat 0 sizeof mRecordFormat UInt32 size sizeof mRecordFormat.mSampleRate XThrowIfError AudioSessionGetProperty kAudioSessionProperty_CurrentHardwareSampleRate size mRecordFormat.mSampleRate couldn't get.. size mRecordFormat.mSampleRate couldn't get hardware sample rate size sizeof mRecordFormat.mChannelsPerFrame XThrowIfError AudioSessionGetProperty kAudioSessionProperty_CurrentHardwareInputNumberChannels size mRecordFormat.mChannelsPerFrame.. kCFAllocatorDefault inRecordFile specify the recording format SetupAudioFormat kAudioFormatLinearPCM create the queue XThrowIfError AudioQueueNewInput mRecordFormat MyInputBufferHandler this userData NULL run loop NULL run loop mode 0 flags mQueue..
|