summaryrefslogtreecommitdiffstats
path: root/sbc/sbcdec.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-08-21 21:32:09 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-08-21 21:32:09 +0000
commitb1618922db92f9bc65b0841f66eb71742bc1b553 (patch)
tree401dbbda10d88248b2dfd3c9961363f7f6b121d4 /sbc/sbcdec.c
parent38c5be0cc3029bf78445be15470d18343a5b4dae (diff)
Add swap member to sbc struct and fix pcm plugin to not swap the buffer.
Diffstat (limited to 'sbc/sbcdec.c')
-rw-r--r--sbc/sbcdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbc/sbcdec.c b/sbc/sbcdec.c
index b5305550..d84a631b 100644
--- a/sbc/sbcdec.c
+++ b/sbc/sbcdec.c
@@ -90,6 +90,7 @@ static void decode(char *filename, char *audiodevice, int tofile)
}
sbc_init(&sbc, 0L);
+ sbc.swap = 1;
framelen = sbc_decode(&sbc, stream, streamlen);
printf("%d Hz, %d channels\n", sbc.rate, sbc.channels);