a little clean

This commit is contained in:
tTh 2023-12-04 14:08:14 +01:00
parent d61fff9b4d
commit 00fc91a451
3 changed files with 12 additions and 5 deletions

5
Ecoute/.gitignore vendored
View File

@ -1,3 +1,8 @@
ecoute ecoute
*.wav
*.ogg
*.flac
*.mp3
*.au

View File

@ -8,7 +8,7 @@
# #
#---------------------------------------------------------------- #----------------------------------------------------------------
VERSION=0.0037 VERSION=0.0038
TEKFLAG= -DDEBUG_LEVEL=0 -g TEKFLAG= -DDEBUG_LEVEL=0 -g
CFLAGS=-Wall -Wextra -ansi $(TEKFLAG) -DVERSION=\"$(VERSION)\" CFLAGS=-Wall -Wextra -ansi $(TEKFLAG) -DVERSION=\"$(VERSION)\"

View File

@ -169,6 +169,10 @@ fprintf(stderr, " end of %s\n", __func__);
return foo; return foo;
} }
/*==------------------------------------------------------------------==*/ /*==------------------------------------------------------------------==*/
/*
* mey be, here, we can use the internals functions
* of libsndfile ?
*/
int info_about_this_file(char *nom, int type) int info_about_this_file(char *nom, int type)
{ {
int foo; int foo;
@ -211,11 +215,9 @@ else
/* /*
* internals infos * internals infos
*/ */
foo = magic_detect(nom, &magicbits); sprintf(chaine, "magic_detect: %4d / ", type);
sprintf(chaine, "magic_detect: %4d", foo);
mvwaddstr(popup, 8, 2, chaine); mvwaddstr(popup, 8, 2, chaine);
mvwaddstr(popup, 8, 25, type2descr(foo)); mvwaddstr(popup, 8, 25, type2descr(type));
wrefresh(popup); wrefresh(popup);
getch(); getch();