From: Andreas Rumpler <andreas.rumpler@audivo.com>
To: alsa-devel@alsa-project.org
Subject: Noise Problem with rate convert plugins
Date: Wed, 11 Jul 2007 17:41:21 +0200 [thread overview]
Message-ID: <4694FA21.1020506@audivo.com> (raw)
Hello,
I'm new to this list.I hope someone could help me with a problem
concerning the samplerate converter plugins of the alsa driver.
Firstly some facts about my application.
- Envy24 (VT1270) pci audio chip on a custom mainboard
- playback of sounds/music with different sample rates from 8kHz to
48kHz (sample rate of the files)
- the hardware (Envy24 chip) must always run with 44.1kHz or 48kHz
(selectable by user), because the audio is outputed by a DAC and SPDIF
and the SPDIF clock must not be changed according to the sample rate of
the files.
- Kernel is 2.6.22 and alsa is 1.0.14
So I'm using the samplerate (libsample rate based) plugin from the
alsa-plugin package. Generaly it works very good.
My problem is:
Every time a playback is started a short plop noise is heard. The noise
is on analog and SPDIF output. If I don't use the samplerate converter
the noise is not heard at all. So it comes definitely from the rate
converter plugin, I think. Changing the quality level of the plugin
don't solve the problem. I've also switched to the new Speex rate
converter plugin. With this plugin there is no noise at the start of
playback. But here I have trouble with awful noise at some rate
conversions (6kHz(source) -> 48kHz(output); 11.025kHz -> 44.1kHz;
22.05kHz -> 44.1kHz). So it's even worse than using the libsamplerate
plugin. Finaly I've tried the libavcodec plugin, which is the worst
according to noise.
Could any comment this problem, please?
This is my asound.conf:
##############################################
# Playback over Line-Out and SPDIF simultaniously as default
pcm.!default {
type plug
slave.pcm {
type multi
slaves.a.pcm "plughw:0,0"
slaves.a.channels 2
slaves.b.pcm "hw:0,1"
slaves.b.channels 2
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
}
ttable.0.0 1
ttable.1.1 1
ttable.0.2 1
ttable.1.3 1
}
pcm_slave.s1 {
pcm default
rate 44100
}
pcm_slave.s2 {
pcm default
rate 48000
}
pcm.rate_convert_44100 {
type rate
slave s1
converter samplerate
}
pcm.rate_convert_48000 {
type rate
slave s2
converter samplerate
}
#####################################################
Regards
Andreas Rumpler
next reply other threads:[~2007-07-11 15:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-11 15:41 Andreas Rumpler [this message]
2007-07-12 13:38 ` Noise Problem with rate convert plugins Takashi Iwai
2007-07-16 14:25 ` Andreas Rumpler
2007-07-20 15:08 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4694FA21.1020506@audivo.com \
--to=andreas.rumpler@audivo.com \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.