LBXScan
LBXScan copied to clipboard
LBXScanNative怎么去掉相机的系统声音换成自己的声音呢?
LBXScanNative怎么去掉相机的系统声音换成自己的声音呢?
设置isNeedScanImage属性为NO就可以去掉系统相机的声音。
是的,那是截图的时候产生的声音。识别成功之后,如果想换自己的音效,可以使用下面的方法:
NSURL *url=[[NSBundle mainBundle]URLForResource:@"scanSuccess.wav" withExtension:nil];
SystemSoundID soundID=8787;
AudioServicesCreateSystemSoundID((__bridge CFURLRef)url, &soundID);
AudioServicesPlaySystemSound(soundID);