简体   繁体   English

AVAudioSession的PlayAndRecord类和AVAudioSessionModeMeasurement与defaultToSpeaker选项不兼容?

[英]AVAudioSession's PlayAndRecord category and AVAudioSessionModeMeasurement are incompatible with defaultToSpeaker option?

尝试使用AVAudioSessionModeMeasurement模式将AVAudioSession放入.playAndRecord类别会导致忽略.defaultToSpeaker选项,从而导致输出被安静地播放到耳机(也称为接收器)之外。

While there doesn't seem to be much written about this the documentation makes this "end result of audio output being sent to the receiver rather than speaker" seem like possible intended behavior and not a bug. 虽然似乎没有太多关于此的文章,但是文档使得“音频输出的最终结果被发送到接收器而不是扬声器”看起来像是可能的预期行为而不是错误。

let AVAudioSessionModeMeasurement: String 让AVAudioSessionModeMeasurement:String

This mode is intended for apps that need to minimize the amount of system-supplied signal processing to input and output signals. 此模式适用于需要最小化系统提供的输入和输出信号处理信号量的应用程序。 If recording on devices with more than one built-in microphone, the primary microphone is used. 如果在具有多个内置麦克风的设备上录制,则使用主麦克风。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM