Audio cannot be played in the emulator
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
android (Ubuntu) |
Confirmed
|
High
|
Unassigned | ||
goget-ubuntu-touch (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have a sample application at:
bzr branch lp:~liu-xiao-guo/debiantrial/bubblekid
The application plays some background music using the following code:
SoundEffect {
id: bubblepop
source: "sounds/
volume: 1.0
}
MediaPlayer {
id: backgroundMusic
source: "sounds/
loops: MediaPlayer.
volume: 1.0
}
The app works well on the phone and on the desktop environment without any problem. However, it cannot play the music in the emulator. A developer also found this problem, and she needs the feature to test the app since she does not have a phone yet.
I test it using the following image:
phablet@
current build number: 206
device name: generic_x86
channel: ubuntu-
last update: 2015-03-12 01:35:11
version version: 206
version ubuntu: 20150312
version device: 20150116
Best regards,
XiaoGuo
description: | updated |
tags: | added: yue |
Changed in android (Ubuntu): | |
importance: | Undecided → High |
There is no audio_policy.conf in the android image for pulseaudio.
Apr 13 10:39:38 ubuntu-phablet pulseaudio[1596]: [pulseaudio] droid-util.c: Failed to parse configuration from /system/ etc/audio_ policy. conf virtual_ stream= true"): initialization failed. etc/audio_ policy. conf virtual_ stream= true"): initialization failed.
Apr 13 10:39:38 ubuntu-phablet pulseaudio[1596]: [pulseaudio] module.c: Failed to load module "module-droid-card" (argument: "voice_
Apr 13 10:39:38 ubuntu-phablet pulseaudio[1596]: [pulseaudio] main.c: Module load failed.
Apr 13 10:39:38 ubuntu-phablet pulseaudio[1596]: [pulseaudio] main.c: Failed to initialize daemon.
Apr 13 10:39:38 ubuntu-phablet pulseaudio[1492]: [pulseaudio] main.c: Daemon startup failed.
Apr 13 10:45:08 ubuntu-phablet pulseaudio[1563]: [pulseaudio] droid-util.c: Failed to parse configuration from /system/
Apr 13 10:45:08 ubuntu-phablet pulseaudio[1563]: [pulseaudio] module.c: Failed to load module "module-droid-card" (argument: "voice_
Apr 13 10:45:08 ubuntu-phablet pulseaudio[1563]: [pulseaudio] main.c: Module load failed.
Apr 13 10:45:08 ubuntu-phablet pulseaudio[1563]: [pulseaudio] main.c: Failed to initialize daemon.
Apr 13 10:45:08 ubuntu-phablet pulseaudio[1509]: [pulseaudio] main.c: Daemon startup failed.
$ dpkg-query -W ubuntu-emulator\* 142~ubuntu14. 04.1 emulator- images 20140922- 1903-0ubuntu3 emulator- runtime 20140922- 1903-0ubuntu3
ubuntu-emulator 0.19-0~
ubuntu-
ubuntu-