Iphone 使用AudioToolBox录制

Iphone 使用AudioToolBox录制,iphone,objective-c,Iphone,Objective C,当用户使用此方法单击按钮时,我正在播放声音: NSString *path = [NSString stringWithFormat: @"%@/%@",[[NSBundle mainBundle] resourcePath], name]; NSURL* filePath = [NSURL fileURLWithPath: path isDirectory: NO]; SystemSoundID soundID; AudioServicesCreateSystemSoundID((CFURLR

当用户使用此方法单击按钮时,我正在播放声音:

NSString *path = [NSString stringWithFormat: @"%@/%@",[[NSBundle mainBundle] resourcePath], name];
NSURL* filePath = [NSURL fileURLWithPath: path isDirectory: NO];
SystemSoundID soundID;
AudioServicesCreateSystemSoundID((CFURLRef)filePath, &soundID);
AudioServicesPlaySystemSound(soundID);

我可以将播放的一组声音录制到一个文件中吗。

你能澄清你的问题吗?我不知道你想实现什么。我想让应用程序在我点击按钮时播放我选择的声音,并且应用程序会录制我播放的声音,然后我可以播放它们,所以只是为了绝对确定……你想播放声音,让你的手机听声音,然后将声音录制回你的手机?我相当肯定的是,它的音频质量会很糟糕,而且每次重新录制时只会变得更糟。