¡@

Home 

2014/10/15 ¤U¤È 10:11:34

iphone Programming Glossary: mqueue

Data format from recording using Audio Queue framework

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

AudioQueueNewInput mRecordFormat MyInputBufferHandler this userData NULL run loop NULL run loop mode 0 flags mQueue AudioQueueNewInput failed And finally here is the callback which handles new audio data void AQRecorder MyInputBufferHandler..

AVAssetReader and Audio Queue streaming problem

http://stackoverflow.com/questions/4763598/avassetreader-and-audio-queue-streaming-problem

NSLog @ No more data to read from NSLog @ aro status after null d pplayerState ar status AudioQueueStop pplayerState mQueue false pplayerState mIsRunning NO return AudioBufferList audioBufferList CMBlockBufferRef blockBuffer CMSampleBufferGetAudioBufferListWithRetainedBlockBuffer.. audioBuffer.mDataByteSize 8 inBuffer mAudioDataByteSize offsetSample 8 AudioQueueEnqueueBuffer pplayerState mQueue inBuffer 0 0 iphone core audio share improve this question I was getting this same mystifying error. Sure enough setting..

Recording mp3 instead of caf file

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

AudioQueueNewInput mRecordFormat MyInputBufferHandler this userData NULL run loop NULL run loop mode 0 flags mQueue AudioQueueNewInput failed get the record format back from the queue's audio converter the file may require a more specific.. was necessary to create the encoder. mRecordPacket 0 size sizeof mRecordFormat XThrowIfError AudioQueueGetProperty mQueue kAudioQueueProperty_StreamDescription mRecordFormat size couldn't get queue's format NSString recordFile NSTemporaryDirectory.. enough bytes for half a second for i 0 i kNumberRecordBuffers i XThrowIfError AudioQueueAllocateBuffer mQueue bufferByteSize mBuffers i AudioQueueAllocateBuffer failed XThrowIfError AudioQueueEnqueueBuffer mQueue mBuffers i 0 NULL..