fixed capture of wav on big-endian.

This commit is contained in:
Takashi Iwai 2002-05-17 15:48:33 +00:00
parent bd2c771ca9
commit ea1fec7d84

View 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