Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Playback pure 44100 Hz and 48000 Hz audio without resampling

  1. #1

    Playback pure 44100 Hz and 48000 Hz audio without resampling

    This is 16 bit / 44100 Hz sample.
    Try to plyback this sample in your favorite music player, and after that try to use command "play SB_test.wav". You see, second part of this file sounds very differently. This is because all your 44100 Hz audio resampled 48000 Hz. It's ok if you watch DVD's (48000 Hz audio), but nasty if you listen CD-Audio (44100 Hz), DVD-Audio or Blu-ray (24 bit / 96000 Hz and 192000 Hz).
    My question is: how to playback audio with different characteristics without resampling?

  2. #2
    Join Date
    Jun 2009
    Beans
    90

    Re: Playback pure 44100 Hz and 48000 Hz audio without resampling

    You see, second part of this file sounds very differently.
    You always can check the momentary freq of your sound card during playback:
    Code:
    cat /proc/asound/card0/stream0 | grep Momentary
    Are you using PulseAuidio? If so, there is no way to play various sound stream (i.e. 44kHz and 48kHz) without resempling.

    To avoid resepling you should use alsa directly, without PulseAudio. For example to play your test file from shell:
    Code:
    aplay play SB_test.wav
    Last edited by CannibalZerg; March 14th, 2010 at 04:21 PM.

  3. #3

    Re: Playback pure 44100 Hz and 48000 Hz audio without resampling

    Quote Originally Posted by CannibalZerg View Post
    You always can check the momentary freq of your sound card during playback:
    Code:
    cat /proc/asound/card1/stream0 | grep Momentary
    There is no stream-files in my card0 and card1 folders. Kubuntu 10.04.

    Quote Originally Posted by CannibalZerg View Post
    Are you using PulseAuidio?
    No.

    Quote Originally Posted by CannibalZerg View Post
    To avoid resepling you should use alsa directly, without PulseAudio. For example to play your test file from shell:
    Code:
    aplay play SB_test.wav
    With aplay same problem here. Only "play" correct playback this file.
    I'm not very interested in how to play without resampling with a simple cli-player that does not support many formats. How to play without resampling at least through the Phonon-Xine, or even better in all applications? As far as I know, you somehow achieve this in your emu-patch for ALSA. It is possible for other sound cards?

  4. #4
    Join Date
    Jun 2009
    Beans
    90

    Re: Playback pure 44100 Hz and 48000 Hz audio without resampling

    What model of soundcard do you have?

  5. #5

    Re: Playback pure 44100 Hz and 48000 Hz audio without resampling

    Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
    Realtek ALC272 (datasheet).
    Last edited by RussianNeuroMancer; March 15th, 2010 at 09:20 AM.

  6. #6
    Join Date
    Jun 2009
    Beans
    90

    Re: Playback pure 44100 Hz and 48000 Hz audio without resampling

    It seems, that your soundcard hardware supports 44.1kHz without resampling (but I'm not sure, because it has only 48kHz sample sync oscillator, while emu-usb products has two independent 44.1kHz and 48kHz oscillators).

    I recommend you to use "udial.wav" for testing purposes, you can get udial.ape from here, and decode it to wav:http://www.hydrogenaudio.org/forums/...=9772&hl=udial (ATTENTION!!! play it at low volume).
    If during playback you hear only clear phone-dialing tone, it means that resample 44.1 -> 48 is inactive. And you'll hear very distorted sound at high frequences, if resampling occurs.

    Try to run:
    Code:
    aplay -D hw:0,0 udial.wav
    aplay -D plughw:0,0 udial.wav
    If both of them produce clean sound, then something wrong with your sound system settings. If "aplay hw:0,0" produce distortions - bad news, it means that hardware/driver can't play "pure" 44.1.

  7. #7

    Re: Playback pure 44100 Hz and 48000 Hz audio without resampling

    Quote Originally Posted by CannibalZerg View Post
    Try to run:
    Code:
    aplay -D hw:0,0 udial.wav
    aplay -D plughw:0,0 udial.wav
    If both of them produce clean sound, then something wrong with your sound system settings. If "aplay hw:0,0" produce distortions - bad news, it means that hardware/driver can't play "pure" 44.1.
    Both of them produce clean 44.1 playback.

    What can be wrong with system settings?
    Last edited by RussianNeuroMancer; March 15th, 2010 at 09:43 AM.

  8. #8
    Join Date
    Jun 2009
    Beans
    90

    Re: Playback pure 44100 Hz and 48000 Hz audio without resampling

    Maybe your soundcard doesn't have hardware mixer and system use dmix by default. Try to redefine default alsa device: create file ".asoundrc" (without qoutes) in your home dir and put content into it:
    Code:
    pcm.!default {
      type plug
      slave {
        pcm "plughw:0,0"
      }
    }
    Now "aplay udial.wav" should be played without resempling, also try to play sound from other applications.

  9. #9

    Re: Playback pure 44100 Hz and 48000 Hz audio without resampling

    Quote Originally Posted by CannibalZerg View Post
    Now "aplay udial.wav" should be played without resempling,
    Yes.
    Quote Originally Posted by CannibalZerg View Post
    also try to play sound from other applications.
    No, all Phonone-Xine applications still resample all 44.kHz audio.

  10. #10
    Join Date
    Jun 2009
    Beans
    90

    Re: Playback pure 44100 Hz and 48000 Hz audio without resampling

    I'm not familiar with Xine settings, so I need some time to test it. At least we find and solve problem with dmix,(but without dmix there is no ability to play several sound streams simultaneously).

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •