From bbbcf6448f9259976384732dae8b7c2b9d1a995d Mon Sep 17 00:00:00 2001 From: kraxel Date: Thu, 1 Sep 2005 11:58:38 +0000 Subject: - make -n work also without -v ... --- record.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/record.c b/record.c index ec09ef7..7dc98fb 100644 --- a/record.c +++ b/record.c @@ -849,6 +849,8 @@ main(int argc, char *argv[]) break; if (wav_size + sound_blksize + sizeof(WAVEHDR) > maxsize) { record_stop(wav,wavfile,tocfile); + if (maxfiles && nr == maxfiles) + break; wav = record_start(wavfile,tocfile,&nr); } wav_write_audio(wav,sound_buffer,sound_blksize); -- cgit