]> git.alsa-project.org Git - alsa-utils.git/commitdiff
fixed capture of wav on big-endian.
authorTakashi Iwai <tiwai@suse.de>
Fri, 17 May 2002 15:48:33 +0000 (15:48 +0000)
committerTakashi Iwai <tiwai@suse.de>
Fri, 17 May 2002 15:48:33 +0000 (15:48 +0000)
aplay/aplay.c

index a910a468e6adf1e2aac3951b9ff934264f4b0f22..989e1647d16195692283a33d3107b34605bfe0a3 100644 (file)
@@ -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