Results 1 to 9 of 9

Thread: [SOLVED] howto change PulseAudio sampling rate

  1. #1
    Join Date
    Nov 2008
    Beans
    6
    Distro
    Ubuntu 8.10 Intrepid Ibex

    [SOLVED] howto change PulseAudio sampling rate

    Hello there

    I've got Emu 0404 USB device and it gives me distorted sound due to sampling rate incompatibilities. 0404 by default works in 48Khz, but PulseAudio default sampling rate is 44.1

    I need to change PulseAudio's default sampling rate from 44.1 to 48

    or to change sampling rate for my 0404 USB card which doesn't seems possible to me

    p.s. I'm on ubuntu 8.10

  2. #2
    Join Date
    Jun 2007
    Beans
    11,124

    Re: howto change PulseAudio sampling rate

    If your sound card receives a 44.1KHz stream, it should automatically resample it to 48KHz if it can't play 44.1KHz natively.

    Nevertheless, you can try configuring the default sample rate. See this: http://linux.die.net/man/5/pulse-daemon.conf

  3. #3
    Join Date
    Apr 2008
    Beans
    4,377
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: howto change PulseAudio sampling rate

    You can change that in

    /etc/pulse/daemon.conf

    Just look for the line
    Code:
    ;default-sample-rate = 44100
    and change it to look like this:
    [code]
    default-sample-rate = 48000
    [code]

    be sure to edit out the ;
    you will need to restart pulseaudio for that to take effect
    To stop pulseaudio:
    Code:
    killall pulseaudio
    To restart pulseaudio
    Code:
    pulseaudio -D
    Be sure to let us know if that works for you or not. If it does, please mark this thread as solved using the thread tools above.

  4. #4
    Join Date
    Nov 2008
    Beans
    6
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: howto change PulseAudio sampling rate

    Quote Originally Posted by Temüjin View Post
    If your sound card receives a 44.1KHz stream, it should automatically resample it to 48KHz if it can't play 44.1KHz natively.

    Nevertheless, you can try configuring the default sample rate. See this: http://linux.die.net/man/5/pulse-daemon.conf
    well, as for card - in linux it doesn't automatically resample anything. No native drivers

    thanks for the link! Will try this right now

  5. #5
    Join Date
    Jun 2007
    Beans
    11,124

    Re: howto change PulseAudio sampling rate

    You can change that in /etc/pulse/daemon.conf
    The man pages states that PA will look in the user's home dir (~/.pulse) for daemon.conf before resorting to using the system-wide file in /etc. So make sure you write the "default-sample-rate = 48000" to ~/.pulse/daemon.conf as well if that file exists

  6. #6
    Join Date
    Jun 2007
    Beans
    11,124

    Re: howto change PulseAudio sampling rate

    Quote Originally Posted by jodaka View Post
    well, as for card - in linux it doesn't automatically resample anything. No native drivers

    thanks for the link! Will try this right now
    The last time I checked, EMU chips resampled in hardware. Maybe the USB card is different.

  7. #7
    Join Date
    Mar 2006
    Beans
    12

    Re: howto change PulseAudio sampling rate

    Perfect, thanks a bunch guys!

  8. #8
    Join Date
    Feb 2010
    Beans
    1

    Re: [SOLVED] howto change PulseAudio sampling rate

    hi!
    this solution works fine with e-mu 0404!
    thanks!

  9. #9
    Join Date
    Dec 2006
    Location
    Sofia, Bulgaria
    Beans
    31
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: howto change PulseAudio sampling rate

    Quote Originally Posted by markbuntu View Post
    be sure to edit out the ;
    All right, I've never paid attention to that fact and always wondered why it ignores my 48kHz and defaults to 44.1kHz. Thank you very much, markbuntu!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •