模拟器:coreaudio:无法初始化播放

时间:2018-06-23 07:12:01

标签: android-studio android-emulator core-audio

Android Studio 3.1.3

内部版本#AI-173.4819257(建于2018年6月4日)

JRE:1.8.0_152-release-1024-b01 x86_64

JVM:JetBrains s.r.o的OpenJDK 64位服务器VM

Mac OS X 10.13.4

Nexus 5 API 22

MediaPlayer不起作用。这是错误日志。没有声音。

9:45    Emulator: coreaudio: Could not initialize playback
9:45    Emulator: coreaudio: Could not set samplerate 44100
9:45    Emulator: coreaudio: Reason: kAudioDeviceUnsupportedFormatError
9:45    Emulator: coreaudio: Could not initialize playback
9:45    Emulator: coreaudio: Could not set samplerate 44100
9:45    Emulator: coreaudio: Reason: kAudioDeviceUnsupportedFormatError
9:45    Emulator: audio: Failed to create voice `goldfish_audio'
9:45    Emulator: qemu-system-i386: warning: opening audio output failed
9:45    Emulator: coreaudio: Could not initialize playback
9:45    Emulator: coreaudio: Could not set samplerate 44100
9:45    Emulator: coreaudio: Reason: kAudioDeviceUnsupportedFormatError
9:45    Emulator: coreaudio: Costrong textuld not initialize playback
9:45    Emulator: coreaudio: Could not set samplerate 44100
9:45    Emulator: coreaudio: Reason: kAudioDeviceUnsupportedFormatError
9:45    Emulator: audio: Failed to create voice `dac'

该错误发生在仿真器启动时,而不是程序启动时。

1 个答案:

答案 0 :(得分:1)

我发现了问题。我在MacBook上使用BOOM 3D应用程序。它是一个音频增强器。该应用程序使用MacBook音频输出。因此,当我禁用该应用程序时,问题消失了。