播放警报声音(振动)虽然AudioQueue正在录制 [英] Play Alert Sound (Vibrate) While AudioQueue is Recording

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

问题描述

看来,这是不可能的播放警报声

It seems that it's not possible to play an alert sound

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天全站免登陆