From ea1fec7d84f5ca46f1938dab999dc6ac878fe141 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 17 May 2002 15:48:33 +0000 Subject: [PATCH] fixed capture of wav on big-endian. --- aplay/aplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aplay/aplay.c b/aplay/aplay.c index a910a46..989e164 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -1493,7 +1493,7 @@ static void begin_wave(int fd, size_t cnt) cf.type = WAV_FMT; cf.length = LE_INT(16); - f.format = LE_INT(WAV_PCM_CODE); + f.format = LE_SHORT(WAV_PCM_CODE); f.modus = LE_SHORT(hwparams.channels); f.sample_fq = LE_INT(hwparams.rate); #if 0