how to record sound use AudioServicesCreateSystemSoundID

when i record audio and play sound use the follow code

    SystemSoundID soundId
    NSString *path = [[NSBundle mainBundle] pathForResource:soundName ofType:_ext]
    AudioServicesCreateSystemSoundID((__bridge CFURLRef)[NSURL fileURLWithPath:path], &soundId)
    AudioServicesPlaySystemSound(soundId) 
there are no sound will be play, is there any solution to solve this problem?

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

上一篇: 使用存储过程将一些数据插入到表中

下一篇: 如何录制声音使用AudioServicesCreateSystemSoundID