1
0
mirror of http://mpg123.de/trunk/.git synced 2025-08-07 21:02:55 +03:00

more usage info

git-svn-id: svn://scm.orgis.org/mpg123/trunk@1150 35dc7657-300d-0410-a2e5-dc2837fedb53
This commit is contained in:
thor
2007-11-28 10:09:17 +00:00
parent 9946ae4fff
commit a32af9e214
3 changed files with 10 additions and 2 deletions

View File

@@ -101,8 +101,15 @@ int main(int argc, char **argv)
{
int i;
mpg123_handle* m;
if(argc < 2)
{
fprintf(stderr, "\nI will print some ID3 tag fields of MPEG audio files.\n");
fprintf(stderr, "\nUsage: %s <mpeg audio file list>\n\n", argv[0]);
return -1;
}
mpg123_init();
m = mpg123_new(NULL, NULL);
for(i=1; i < argc; ++i)
{
mpg123_id3v1 *v1;

View File

@@ -35,6 +35,7 @@ int main(int argc, char **argv)
/* mpg123_param(m, MPG123_START_FRAME, 2300, 0); */
mpg123_open_feed(m);
if(m == NULL) return -1;
fprintf(stderr, "Feed me some MPEG audio to stdin, I will decode to stdout.\n");
while(1) {
len = read(0,buf,INBUFF);
if(len <= 0)

View File

@@ -19,8 +19,8 @@ int main(int argc, char **argv)
int i;
if(argc < 2)
{
fprintf(stderr, "I will give you the estimated and exact sample lengths of MPEG audio files.\n");
fprintf(stderr, "\nUsage: %s <mpeg audio file list>\n", argv[0]);
fprintf(stderr, "\nI will give you the estimated and exact sample lengths of MPEG audio files.\n");
fprintf(stderr, "\nUsage: %s <mpeg audio file list>\n\n", argv[0]);
return -1;
}
mpg123_init();