1

我们已经开始注意到一些用户在更新到 iOS6 后出现了一些奇怪的音频错误。我们正在使用MPMusicPlayerController和其他一些核心音频功能。还有其他人经历过类似的事情吗?控制台日志片段:

Sep 30 23:14:43 JMS-iPhone mediaserverd[37] <Notice>: >vad< ERROR:    23:14:43.712 [tid 0x2ff6f000] VirtualStream.cpp[465]: GetCurrentFormats(): Error 'what' getting virtual format for actual format [ 16/44100/1; flags: 0x44; bytes/packet: 4; frames/packet: 1; bytes/frame: 4;  ]
Sep 30 23:14:43 JMS-iPhone mediaserverd[37] <Notice>: >vad< EXCEPTION: 23:14:43.718 [tid 0x2ff6f000] VirtualStream.cpp[369]: GetPropertyData(): result: "error getting current stream format"
Sep 30 23:14:43 JMS-iPhone mediaserverd[37] <Notice>: >vad< ERROR:    23:14:43.731 [tid 0x2ff6f000] VirtualStream.cpp[465]: GetCurrentFormats(): Error 'what' getting virtual format for actual format [ 16/44100/1; flags: 0x44; bytes/packet: 4; frames/packet: 1; bytes/frame: 4;  ]
Sep 30 23:14:43 JMS-iPhone mediaserverd[37] <Notice>: >vad< ERROR:    23:14:43.738 [tid 0x2ff6f000] VirtualAudio_Stream.cpp[411]: UpdatePhysicalFormat(): error 'what' getting underlying stream format
Sep 30 23:14:43 JMS-iPhone Application[3009] <Warning>: [DB] phone volume changed to: 1.000000
Sep 30 23:14:43 JMS-iPhone mediaserverd[37] <Notice>: >vad< ERROR:    23:14:43.858 [tid 0x3265000] VirtualStream.cpp[465]: GetCurrentFormats(): Error 'what' getting virtual format for actual format [ 16/44100/1; flags: 0x44; bytes/packet: 4; frames/packet: 1; bytes/frame: 4;  ]
Sep 30 23:14:43 JMS-iPhone mediaserverd[37] <Notice>: >vad< EXCEPTION: 23:14:43.863 [tid 0x3265000] AggregateDevice_Common.cpp[1204]: UpdateIOProcCache(): result: "Stream::GetCurrentFormat() returned an error."
Sep 30 23:14:43 JMS-iPhone mediaserverd[37] <Notice>: >vad< EXCEPTION: 23:14:43.867 [tid 0x3265000] VirtualAudio_Device.cpp[2186]: StartIOEngine(): theError: "error starting IO on the active device"
Sep 30 23:14:43 JMS-iPhone mediaserverd[37] <Error>: 23:14:43.870 <AudioControl> AQMEIO_Base::DoStartIO: error 2003329396
Sep 30 23:14:43 JMS-iPhone mediaserverd[37] <Error>: 23:14:43.872 <AudioControl> AQMEDevice(0x1ea4e000)::StartIO: error 2003329396
4

1 回答 1

0

好的,我想我们现在已经解决了这个问题。真正发生的是,我们还没有完全理解背景音频和音频会话中断的复杂性。

如果您有奇怪的声音问题,请检查您是否正确处理了中断。

很抱歉没有提供任何代码,有关处理中断的更多信息:

http://developer.apple.com/library/ios/#documentation/Audio/Conceptual/AudioSessionProgrammingGuide/HandlingAudioInterruptions/HandlingAudioInterruptions.html

于 2012-10-09T16:38:38.500 回答