mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
programs/sndfile-(de)>interleave.c : Improve usage messages.
This commit is contained in:
parent
984161c26b
commit
77ec10e93f
@ -1,3 +1,8 @@
|
||||
2010-01-10 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* programs/sndfile-deinterleave.c programs/sndfile-interleave.c
|
||||
Improve usage messages.
|
||||
|
||||
2010-01-09 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* src/id3.c src/Makefile.am
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2009 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2009-2010 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
**
|
||||
** All rights reserved.
|
||||
**
|
||||
@ -71,7 +71,8 @@ main (int argc, char **argv)
|
||||
int ch, double_split ;
|
||||
|
||||
if (argc != 2)
|
||||
{ puts ("\nError : need a single input file.\n") ;
|
||||
{ if (argc != 1)
|
||||
puts ("\nError : need a single input file.\n") ;
|
||||
usage_exit () ;
|
||||
} ;
|
||||
|
||||
@ -146,7 +147,12 @@ main (int argc, char **argv)
|
||||
static void
|
||||
usage_exit (void)
|
||||
{ puts ("\nUsage : sndfile-deinterleave <filename>\n") ;
|
||||
puts ("Split a mutli channel file into a set of mon files.\n") ;
|
||||
puts (
|
||||
"Split a mutli-channel file into a set of mono files.\n"
|
||||
"\n"
|
||||
"If the input file is named 'a.wav', the output files will be named\n"
|
||||
"a_00.wav, a_01.wav and so on.\n"
|
||||
) ;
|
||||
exit (0) ;
|
||||
} /* usage_exit */
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** Copyright (C) 2009 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
** Copyright (C) 2009-2010 Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
**
|
||||
** All rights reserved.
|
||||
**
|
||||
@ -72,7 +72,8 @@ main (int argc, char **argv)
|
||||
int k, double_merge = 0 ;
|
||||
|
||||
if (argc < 5)
|
||||
{ puts ("\nError : need at least 2 input files.") ;
|
||||
{ if (argc > 1)
|
||||
puts ("\nError : need at least 2 input files.") ;
|
||||
usage_exit () ;
|
||||
} ;
|
||||
|
||||
@ -143,7 +144,7 @@ main (int argc, char **argv)
|
||||
static void
|
||||
usage_exit (void)
|
||||
{ puts ("\nUsage : sndfile-interleave <input 1> <input 2> ... -o <output file>\n") ;
|
||||
puts ("Merge two mono files to one stereo file\n") ;
|
||||
puts ("Merge two or more mono files into a single multi-channel file.\n") ;
|
||||
exit (0) ;
|
||||
} /* usage_exit */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user