]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Allow aplay/arecord to handle up to 2GB for WAV
authorTakashi Iwai <tiwai@suse.de>
Wed, 26 Apr 2006 14:14:51 +0000 (16:14 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 26 Apr 2006 14:14:51 +0000 (16:14 +0200)
Change the max_filesize value for WAV format to 2GB.
(It's still not 100% sure that WAV allows *exactly* 2GB, though.)

aplay/aplay.c

index 7c3d7cdf579531ba8d212fb124e7fd3dca1228e1..6b3502161e02afd6ef8d80a39f7184e0ae987bef 100644 (file)
@@ -128,7 +128,8 @@ struct fmt_capture {
 } fmt_rec_table[] = {
        {       NULL,           end_raw,        N_("raw data"),         LLONG_MAX },
        {       begin_voc,      end_voc,        N_("VOC"),              16000000 },
-       {       begin_wave,     end_wave,       N_("WAVE"),             2000000000 },
+       /* FIXME: can WAV handle exactly 2GB or less than it? */
+       {       begin_wave,     end_wave,       N_("WAVE"),             2147483648 },
        {       begin_au,       end_au,         N_("Sparc Audio"),      LLONG_MAX }
 };