Andrew Martin
2004-06-26 03:24:00 UTC
Hello,
I'm wondering if it's possible to have software mixing via the dmix
plugin, but still be able to choose either 48000hz or 44100hz as the
rate for a specific app. Something like having two dmix statements in
.asoundrc. Being able to specify 'mplayer -ao alsa:dmix48' would be
ideal. I currently have one dmix block with 'rate 44100'.
Alternatively, I would not mind having 48KHz audio resampled to 44.1KHz
if I could get it to work properly. Whenever I have a song paused in
XMMS (alsa output plugin), and then attempt to play 48KHz audio in
mplayer (alsa output), I hear a distorted crackling noise in the audio.
Interestingly, this does not happen when a song is *stopped* in XMMS.
I'm using ALSA 1.05a with kernel 2.6.7 on Debian (sarge). I have a
M-Audio Revolution 7.1 card (Envy24HT chipset - driver does not support
hardware mixing). My current .asoundrc is as follows:
pcm.!default {
type plug
slave.pcm "dmix44"
}
pcm.dmix44 {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
#periods 128
rate 44100
}
bindings {
0 0
1 1
}
}
Thanks,
Andrew Martin
I'm wondering if it's possible to have software mixing via the dmix
plugin, but still be able to choose either 48000hz or 44100hz as the
rate for a specific app. Something like having two dmix statements in
.asoundrc. Being able to specify 'mplayer -ao alsa:dmix48' would be
ideal. I currently have one dmix block with 'rate 44100'.
Alternatively, I would not mind having 48KHz audio resampled to 44.1KHz
if I could get it to work properly. Whenever I have a song paused in
XMMS (alsa output plugin), and then attempt to play 48KHz audio in
mplayer (alsa output), I hear a distorted crackling noise in the audio.
Interestingly, this does not happen when a song is *stopped* in XMMS.
I'm using ALSA 1.05a with kernel 2.6.7 on Debian (sarge). I have a
M-Audio Revolution 7.1 card (Envy24HT chipset - driver does not support
hardware mixing). My current .asoundrc is as follows:
pcm.!default {
type plug
slave.pcm "dmix44"
}
pcm.dmix44 {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 1024
buffer_size 8192
#periods 128
rate 44100
}
bindings {
0 0
1 1
}
}
Thanks,
Andrew Martin