如何录制声音使用AudioServicesCreateSystemSoundID

当我录制音频和播放声音时,请使用以下代码

    SystemSoundID soundId
    NSString *path = [[NSBundle mainBundle] pathForResource:soundName ofType:_ext]
    AudioServicesCreateSystemSoundID((__bridge CFURLRef)[NSURL fileURLWithPath:path], &soundId)
    AudioServicesPlaySystemSound(soundId) 
有没有声音会被播放,是否有任何解决方案来解决这个问题?

链接地址: http://www.djcxy.com/p/67939.html

上一篇: how to record sound use AudioServicesCreateSystemSoundID

下一篇: Play and stop a sound sample on iOS (Novocaine)