This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to disable resampling?

Tags: None
(comma "," separated)
micmac
Registered Member
Posts
2
Karma
0

How to disable resampling?

Tue Jul 04, 2006 6:04 pm
Hi everybody,

I installed amarok 1.4.1 some hours ago and I really enjoy it. Thanks!

But I saw that the output gets resampled to 48kHz before it gets to the soundcard. The soundcard, a Midiman Audiophile 2496, is capable of 44.1kHz, though. Is there a way to disable resampling in amarok? I'm using the xine engine.
Code: Select all
cat /proc/asound/card0/pcm0p/sub0/hw_params
access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 10
rate: 48000 (48000/1)
period_size: 1024
buffer_size: 6553
tick_time: 10000

I've seen no other player yet that resamples audio from 44.1kHz to 48kHz on my computer.

Cheers
mic
micmac
Registered Member
Posts
2
Karma
0

Re: How to disable resampling?

Tue Jul 04, 2006 6:40 pm
Ok,

I changed my stereo device and now xine doesn't resample. But the sound started stuttering?!

Edit: Added some more USE flags to xine-lib and recompiled it. Then I ran xine and its gui to configure xine-lib and finally copied ~/.xine/config to ~./kde/share/apps/amarok/xine-config. Now amarok works just fine :)

Cheers

mic

Last edited by micmac on Tue Jul 04, 2006 10:19 pm, edited 1 time in total.
bogus
Registered Member
Posts
2
Karma
0

Re: How to disable resampling?

Sat May 05, 2007 3:54 pm
Please give us more details ; I have exactly the same problem here and can get amarok-xine to open my sound card in 44.1kzh instead of 48000 (my sound card is Audiophile too and is capable of 44100) I don't want resampling !!
bogus
Registered Member
Posts
2
Karma
0

Re: How to disable resampling?

Sun May 06, 2007 9:16 am
Well, I found the problem ; Ubuntu install does not generate any /ets/asound.conf file for ice1712 chips and alsa builtin default are crazy (hard coded sample rate !), so just drop this config file I found on alsa wiki in /ets/asound.conf (no need to reboot) :


pcm.ice1712 {
        type hw
        card 0
        device 0
}

pcm.!default {
  type plug
  ttable.0.0 1
  ttable.0.1 1
  slave.pcm ice1712
}

# adcdac 1&2
pcm.channel1 {
        type plug
        ttable.0.0 1
        ttable.0.1 1
        slave.pcm ice1712
}

# adcdac 3&4
pcm.channel2 {
        type plug
        ttable.0.2 1
        ttable.0.3 1
        slave.pcm ice1712
}

#adcdac 5&6
pcm.channel3 {
        type plug
        ttable.0.4 1
        ttable.0.5 1
        slave.pcm ice1712
}

# adcdac 7&8
pcm.channel4 {
        type plug
        ttable.0.6 1
        ttable.0.7 1
        slave.pcm ice1712
}

#SPDIF channels only
pcm.ice1712_spdif {
        type plug
        ttable.0.8 1
        ttable.1.9 1
        slave.pcm ice1712
}


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot]