audiobuffer

How to write audio file locally recorded from microphone using AudioBuffer in iPhone?

寵の児 提交于 2019-12-03 14:42:54
问题 I am new to Audio framework, anyone help me to write the audio file which is playing by capturing from microphone? below is the code to play mic input through iphone speaker, now i would like to save the audio in iphone for future use. i found the code from here to record audio using microphone http://www.stefanpopp.de/2011/capture-iphone-microphone/ /** Code start from here for playing the recorded voice */ static OSStatus playbackCallback(void *inRefCon, AudioUnitRenderActionFlags

how to play nsdata audio buffering receive from web-socket?

拈花ヽ惹草 提交于 2019-12-02 11:36:12
I'm creating a call app in objective c.my problem is in the send and receive audio stream.recording audio buffering and convert to nsdata and send with (base64 format) by socket rocket this is good work but I'm not know how to after receiving nsdata from server play this audio buffering? my code: viewController.h #import <UIKit/UIKit.h> #import <AudioToolbox/AudioQueue.h> #import <AudioToolbox/AudioFile.h> #import <SocketRocket/SocketRocket.h> #import <AVFoundation/AVFoundation.h> #import <AVKit/AVKit.h> #define NUM_BUFFERS 3 #define SAMPLERATE 16000 //Struct defining recording state typedef