gpt4 book ai didi

ios - AVAudioSession 错误

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:40:05 30 4
gpt4 key购买 nike

我收到以下错误,但不知道是什么原因造成的。

Aug 4 15:04:56 MyiPad myApp[1523] : 15:04:56.072 ERROR: [0x78ba000] AVAudioSessionUtilities.h:124: GetProperty_DefaultToZero: AudioSessionGetProperty ('cilt') failed with error: '!siz'

在我的应用中我是:

  • 使用 AVAudioPlayer 播放声音
  • 操纵 AVAudioSessionCategory 和 AVAudioSessionMode(在 SoloAmbient/Default 和 PlayAndRecord/VideoChat 之间切换,选项:AllowBluetooth | DefaultToSpeaker)
  • 使用 AddLive 进行 webRTC 视频通话
  • 使用私有(private) API here操纵 AirPlay 选择

显然发生了很多事情,所以我不希望任何人把这个放在盘子里给我,但是你能告诉我关于错误的任何事情都会非常有帮助

更新 1:“cilt”代表 kAudioSessionProperty_CurrentHardwareInputLatency

更新 2:“!siz”表示属性数据的大小不正确(在 iOS 7 中已弃用)

最佳答案

我关注了在 Google 上可以找到的所有相关主题,几乎所有主题都指向有关 AVAudioSessionCategoryOptionMixWithOthers 选项的内容。我将它与我在 PlayAndRecord 类别上使用的其他选项进行了 ORed,它起作用了……去看看吧。

如果有人对这个谜团有任何见解,请回答或发表评论,但现在,请尝试该选项,看看会发生什么。当我了解更多时,我会更新。

关于ios - AVAudioSession 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31820741/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com