1
在我的應用我有這使用下面的代碼的某些按鈕:如何在iPhone上錄製和播放聲音?
SystemSoundID beep;
CFStringRef beepPath = (CFStringRef) [NSString stringWithFormat: @"%@/SoundFile.aif", [[NSBundle mainBundle] bundlePath]];
AudioServicesCreateSystemSoundID (CFURLCreateWithFileSystemPath (NULL, beepPath, kCFURLPOSIXPathStyle, false), &beep);
CFRelease(beepPath);
AudioServicesPlaySystemSound (beep);
我想用戶開始錄製,並能夠記錄任何聲音通過該應用進行的,然後有能力在一定的時間限制後播放錄製的聲音,或者有停止錄製按鈕,然後點擊「播放」按鈕播放錄製的剪輯。
關於如何實現這一點的任何想法?