From: Takashi Iwai Date: Fri, 17 May 2002 15:48:33 +0000 (+0000) Subject: fixed capture of wav on big-endian. X-Git-Tag: v1.0.3~133 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=ea1fec7d84f5ca46f1938dab999dc6ac878fe141;p=alsa-utils.git fixed capture of wav on big-endian. --- 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