Public bug reported:

as described by user Kirill Kabardin on 2012-08-13 in question:
https://answers.launchpad.net/ubuntu/+source/pulseaudio/+question/205700

I can't get pulseaudio to play at 96000 hz sample rate. It worked in 11.10 
I have this options enabled in /etc/pulse/daemon.conf  (some of them were 
enabled by default, I only changed that ones that marked with #):

    resample-method = ffmpeg #
    enable-remixing = yes #
    enable-lfe-remixing = yes #
    flat-volumes = no
    default-sample-format = s16le #
    default-sample-rate = 96000 #
    default-fragments = 8
    default-fragment-size-msec = 10
    deferred-volume-safety-margin-usec = 1


I have this messages in "pulseaudio -v" output (this is not a full log, it just 
too big to put here):

    I: [pulseaudio] alsa-util.c: Unable to attach to mixer front:0: No such 
file or directory
    I: [pulseaudio] alsa-util.c: Successfully attached to mixer 'hw:0'
    I: [pulseaudio] alsa-util.c: Device hw:0 doesn't support 96000 Hz, changed 
to 48000 Hz.
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] alsa-util.c: snd_pcm_hw_params failed: Device or resource 
busy
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] alsa-util.c: snd_pcm_hw_params failed: Device or resource 
busy
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] alsa-util.c: snd_pcm_hw_params failed: Device or resource 
busy
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] (alsa-lib)setup.c: Cannot lock ctl elem
    I: [pulseaudio] alsa-util.c: snd_pcm_hw_params failed: Device or resource 
busy
    I: [pulseaudio] alsa-util.c: Failed to set hardware parameters on 
plug:front:0: Device or resource busy
    I: [pulseaudio] alsa-util.c: Device hw:0 doesn't support 96000 Hz, changed 
to 48000 Hz.


It says that device does not suppport 96000 Hz but it definitely does. I can 
play 96000 khz 16-bit audio files just fine with aplay:


    flac -cd 1.flac | aplay -v -D front
    
    flac 1.2.1, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007  Josh 
Coalson
    flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
    welcome to redistribute it under certain conditions.  Type `flac' for 
details.
    
    Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 96000 Hz, Stereo
    Hooks PCM
    Its setup is:
      stream       : PLAYBACK
      access       : RW_INTERLEAVED
      format       : S16_LE
      subformat    : STD
      channels     : 2
      rate         : 96000
      exact rate   : 96000 (96000/1)
      msbits       : 16
      buffer_size  : 16384
      period_size  : 4096
      period_time  : 42666
      tstamp_mode  : NONE
      period_step  : 1
      avail_min    : 4096
      period_event : 0
      start_threshold  : 16384
      stop_threshold   : 16384
      silence_threshold: 0
      silence_size : 0
      boundary     : 4611686018427387904
    Slave: Hardware PCM card 0 'SB Audigy 4 [SB0610]' device 0 subdevice 0
    Its setup is:
      stream       : PLAYBACK
      access       : RW_INTERLEAVED
      format       : S16_LE
      subformat    : STD
      channels     : 2
      rate         : 96000
      exact rate   : 96000 (96000/1)
      msbits       : 16
      buffer_size  : 16384
      period_size  : 4096
      period_time  : 42666
      tstamp_mode  : NONE
      period_step  : 1
      avail_min    : 4096
      period_event : 0
      start_threshold  : 16384
      stop_threshold   : 16384
      silence_threshold: 0
      silence_size : 0
      boundary     : 4611686018427387904
      appl_ptr     : 0
      hw_ptr       : 0
    1.flac: 0% complete

What am I missing?

** Affects: pulseaudio (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1065554

Title:
  can't get pulseaudio to play at 96000 hz sample rate

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1065554/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to