Pulseaudio problems with sound effects in HTML5 games

Bug #1029419 reported by Cleber Casali
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Sound in HTML5 games works fine with pure alsa, but it has problems with pulseaudio.

http://darkphear.elementfx.com/webgames/test1/ (Press ENTER or Z to shoot)

http://www.html5games.net/shooter/ninja-jarimaru/ (Click to throw the chain)

1) In firefox the sound effect sometimes plays at the right timing, sometimes it plays half a second later, sometimes it doesn't play at all.

2) In google-chrome the sound effect always plays at the right timing, but it seems to cut before the sample finishes.
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: user-kubuntu 1836 F.... kded4
                      user-kubuntu 2202 F.... kmix
 /dev/snd/controlC0: user-kubuntu 1836 F.... kded4
                      user-kubuntu 2202 F.... kmix
Card0.Amixer.info:
 Card hw:0 'PCH'/'HDA Intel PCH at 0xf6420000 irq 56'
   Mixer name : 'Realtek ALC892'
   Components : 'HDA:10ec0892,80862007,00100302'
   Controls : 38
   Simple ctrls : 19
Card1.Amixer.info:
 Card hw:1 'NVidia'/'HDA NVidia at 0xf6000000 irq 17'
   Mixer name : 'Nvidia GPU 15 HDMI/DP'
   Components : 'HDA:10de0015,10de0101,00100100'
   Controls : 25
   Simple ctrls : 5
DistroRelease: Ubuntu 12.04
InstallationMedia: Kubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120423)
NonfreeKernelModules: nvidia
Package: pulseaudio 1:1.1-0ubuntu15.1
PackageArchitecture: amd64
ProcEnviron:
 LANGUAGE=pt_BR
 TERM=xterm
 LANG=pt_BR.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
Tags: precise
Uname: Linux 3.2.0-26-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 04/20/2012
dmi.bios.vendor: Intel Corp.
dmi.bios.version: BGP6710J.86A.2185.2012.0420.0057
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: DP67BG
dmi.board.vendor: Intel Corporation
dmi.board.version: AAG10491-306
dmi.chassis.type: 3
dmi.modalias: dmi:bvnIntelCorp.:bvrBGP6710J.86A.2185.2012.0420.0057:bd04/20/2012:svn:pn:pvr:rvnIntelCorporation:rnDP67BG:rvrAAG10491-306:cvn:ct3:cvr:
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
Card0.Amixer.info:
 Card hw:0 'PCH'/'HDA Intel PCH at 0xf6420000 irq 56'
   Mixer name : 'Realtek ALC892'
   Components : 'HDA:10ec0892,80862007,00100302'
   Controls : 38
   Simple ctrls : 19
Card1.Amixer.info:
 Card hw:1 'NVidia'/'HDA NVidia at 0xf6000000 irq 17'
   Mixer name : 'Nvidia GPU 15 HDMI/DP'
   Components : 'HDA:10de0015,10de0101,00100100'
   Controls : 25
   Simple ctrls : 5
DistroRelease: Ubuntu 12.04
InstallationMedia: Kubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120423)
NonfreeKernelModules: nvidia
Package: pulseaudio 1:1.1-0ubuntu15.1
PackageArchitecture: amd64
ProcEnviron:
 LANGUAGE=pt_BR
 TERM=xterm
 LANG=pt_BR.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
Tags: precise
Uname: Linux 3.2.0-26-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 04/20/2012
dmi.bios.vendor: Intel Corp.
dmi.bios.version: BGP6710J.86A.2185.2012.0420.0057
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: DP67BG
dmi.board.vendor: Intel Corporation
dmi.board.version: AAG10491-306
dmi.chassis.type: 3
dmi.modalias: dmi:bvnIntelCorp.:bvrBGP6710J.86A.2185.2012.0420.0057:bd04/20/2012:svn:pn:pvr:rvnIntelCorporation:rnDP67BG:rvrAAG10491-306:cvn:ct3:cvr:

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1029419/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Logan Rosen (logan)
affects: ubuntu → pulseaudio (Ubuntu)
Revision history for this message
Logan Rosen (logan) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal:
apport-collect 1029419
When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in pulseaudio (Ubuntu):
status: New → Incomplete
Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : AlsaDevices.txt

apport information

tags: added: apport-collected precise
description: updated
Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : AplayDevices.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : ArecordDevices.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : BootDmesg.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : Card0.Codecs.codec.2.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : Card1.Amixer.values.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : Card1.Codecs.codec.0.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : Card1.Codecs.codec.1.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : Card1.Codecs.codec.2.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : Card1.Codecs.codec.3.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : Dependencies.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : PciMultimedia.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : ProcCpuinfo.txt

apport information

description: updated
Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : AlsaDevices.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : AplayDevices.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : ArecordDevices.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : AudioDevicesInUse.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : BootDmesg.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : Card0.Codecs.codec.2.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : Card1.Amixer.values.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : Card1.Codecs.codec.0.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : Card1.Codecs.codec.1.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : Card1.Codecs.codec.2.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : Card1.Codecs.codec.3.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : Dependencies.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : PciMultimedia.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote : PulseList.txt

apport information

Revision history for this message
Raymond (superquad-vortex2) wrote :

the max latency is about 371ms, it is strange that the delay is half second?

 sink(s) available.
  * index: 0
 name: <alsa_output.pci-0000_01_00.1.analog-stereo>
 driver: <module-alsa-card.c>
 flags: HARDWARE HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
 state: SUSPENDED
 suspend cause: IDLE
 priority: 9059
 volume: 0: 100% 1: 100%
         0: 0,00 dB 1: 0,00 dB
         balance 0,00
 base volume: 100%
              0,00 dB
 volume steps: 65537
 muted: no
 current latency: 0,00 ms
 max request: 0 KiB
 max rewind: 0 KiB
 monitor source: 0
 sample spec: s16le 2ch 44100Hz
 channel map: front-left,front-right
              Stereo
 used by: 0
 linked by: 0
 configured latency: 0,00 ms; range is 0,50 .. 371,52 ms
 card: 0 <alsa_card.pci-0000_01_00.1>
 module: 4
 properties:
  alsa.resolution_bits = "16"
  device.api = "alsa"
  device.class = "sound"
  alsa.class = "generic"
  alsa.subclass = "generic-mix"
  alsa.name = "HDMI 0"
  alsa.id = "HDMI 0"
  alsa.subdevice = "0"
  alsa.subdevice_name = "subdevice #0"
  alsa.device = "7"
  alsa.card = "1"
  alsa.card_name = "HDA NVidia"
  alsa.long_card_name = "HDA NVidia at 0xf6000000 irq 17"
  alsa.driver_name = "snd_hda_intel"
  device.bus_path = "pci-0000:01:00.1"
  sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
  device.bus = "pci"
  device.vendor.id = "10de"
  device.vendor.name = "NVIDIA Corporation"
  device.product.name = "GF116 High Definition Audio Controller"
  device.string = "hw:1"
  device.buffering.buffer_size = "65536"
  device.buffering.fragment_size = "32768"
  device.access_mode = "mmap+timer"
  device.profile.name = "analog-stereo"
  device.profile.description = "Estéreo analógico"
  device.description = "GF116 High Definition Audio Controller Estéreo analógico"
  alsa.mixer_name = "Nvidia GPU 15 HDMI/DP"
  alsa.components = "HDA:10de0015,10de0101,00100100"
  module-udev-detect.discovered = "1"
  device.icon_name = "audio-card-pci"
 ports:
  analog-output: Saída analógica (priority 9900, available: unknown)
   properties:

 active port: <analog-output>

Revision history for this message
Cleber Casali (cleberdemattoscasali-1) wrote :

Well, it's factory settings because I didn' t change it.
How to reduce the latency then?

Logan Rosen (logan)
Changed in pulseaudio (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 12.04 (precise) reached end-of-life on April 28, 2017.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test.

Changed in pulseaudio (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for pulseaudio (Ubuntu) because there has been no activity for 60 days.]

Changed in pulseaudio (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.