播放提示音(振动)当AudioQueue正在录制时 [英] Play Alert Sound (Vibrate) While AudioQueue is Recording

查看:199
本文介绍了播放提示音(振动)当AudioQueue正在录制时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎无法播放警报声音

AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);

AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);

AudioQueue正在用于记录音频。那是对的吗?也许我做错了。除非暂停录音,否则有办法吗?

while the AudioQueue is being used to record audio. Is that correct? Maybe I'm doing something wrong. Is there a way to do this other than pausing the recording?

TIA。

推荐答案

从苹果的开发者论坛,一对夫妇的开发者声称这是一个错误已提交。如果你设置你的会话类型为kAudioSessionCategory_PlayAndRecord它应该工作..但不是。

From reading Apple's developer forums, a couple devs claim this is a bug that's been filed. If you set your session type to kAudioSessionCategory_PlayAndRecord it ought to work.. but doesn't.

这篇关于播放提示音(振动)当AudioQueue正在录制时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆