【发布时间】:2009-01-21 19:15:24
【问题描述】:
在我的应用中,我有一些使用以下代码的按钮:
SystemSoundID beep;
CFStringRef beepPath = (CFStringRef) [NSString stringWithFormat: @"%@/SoundFile.aif", [[NSBundle mainBundle] bundlePath]];
AudioServicesCreateSystemSoundID (CFURLCreateWithFileSystemPath (NULL, beepPath, kCFURLPOSIXPathStyle, false), &beep);
CFRelease(beepPath);
AudioServicesPlaySystemSound (beep);
我希望用户开始录制并能够录制应用发出的任何声音,然后能够在一定时间限制后播放录制的声音,或者停止录制按钮,然后是“播放”按钮来播放录制的剪辑。
关于如何实现这一点的任何想法?
【问题讨论】:
标签: iphone objective-c core-audio