aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-10 15:21:40 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-10 15:21:40 +0000
commit872af2077706da859b5a64c2e06bfd06de80387b (patch)
tree1c972498ca1d54b5d0a72502e3e37b401fa4fa98 /src/audio.c
parent7626d9a547e9a8dfadbcf0dc148fcef4e61bb2cd (diff)
downloadmpd-872af2077706da859b5a64c2e06bfd06de80387b.tar.gz
mpd-872af2077706da859b5a64c2e06bfd06de80387b.tar.xz
mpd-872af2077706da859b5a64c2e06bfd06de80387b.zip
resampling code blatantly ripped from xmms, needs testing and need to
right conversion routines for bit conversion and channel conversion git-svn-id: https://svn.musicpd.org/mpd/trunk@971 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/audio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio.c b/src/audio.c
index de5296f2e..5de64b447 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -159,7 +159,7 @@ void initAudioConfig() {
exit(EXIT_FAILURE);
}
- audio_configFormat->bits = strtol(test,&test,10);
+ audio_configFormat->bits = strtol(test+1,&test,10);
if(*test!=':') {
ERROR("error parsing audio output format: %s\n",conf);
@@ -175,7 +175,7 @@ void initAudioConfig() {
exit(EXIT_FAILURE);
}
- audio_configFormat->channels = strtol(test,&test,10);
+ audio_configFormat->channels = strtol(test+1,&test,10);
if(*test!='\0') {
ERROR("error parsing audio output format: %s\n",conf);