Audio cannot be played in the emulator

Bug #1443313 reported by XiaoGuo, Liu
12
This bug affects 2 people
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/bubblepop.wav"
            volume: 1.0
        }

        MediaPlayer {
            id: backgroundMusic
            source: "sounds/background.mp3"
            autoPlay: true
            loops: MediaPlayer.Infinite
            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@ubuntu-phablet:~$ system-image-cli -i
current build number: 206
device name: generic_x86
channel: ubuntu-touch/ubuntu-rtm/14.09-proposed
last update: 2015-03-12 01:35:11
version version: 206
version ubuntu: 20150312
version device: 20150116

Best regards,
XiaoGuo

Tags: yue
description: updated
Revision history for this message
Rex Tsai (chihchun) wrote :

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
Apr 13 10:39:38 ubuntu-phablet pulseaudio[1596]: [pulseaudio] module.c: Failed to load module "module-droid-card" (argument: "voice_virtual_stream=true"): initialization failed.
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/etc/audio_policy.conf
Apr 13 10:45:08 ubuntu-phablet pulseaudio[1563]: [pulseaudio] module.c: Failed to load module "module-droid-card" (argument: "voice_virtual_stream=true"): initialization failed.
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\*
ubuntu-emulator 0.19-0~142~ubuntu14.04.1
ubuntu-emulator-images 20140922-1903-0ubuntu3
ubuntu-emulator-runtime 20140922-1903-0ubuntu3

Changed in goget-ubuntu-touch (Ubuntu):
status: New → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in android (Ubuntu):
status: New → Confirmed
Rex Tsai (chihchun)
tags: added: yue
Changed in android (Ubuntu):
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.