This commit is contained in:
tth 2019-12-23 18:01:10 +01:00
parent 119a61c0e5
commit 10b2f53b85
3 changed files with 7 additions and 8 deletions

View File

@ -18,14 +18,14 @@ printf("%c %02X [%-20s] %s\n", sref->key, sref->flags, sref->text,
sref->path);
}
/* --------------------------------------------------------------------- */
void liste_des_samples(void)
void affiche_liste_des_samples(SampleRef samples[])
{
int foo;
for (foo=0; foo<26; foo++) {
printf("%2d %02x %-30s %s\n", foo, the_samples[foo].key,
the_samples[foo].text,
the_samples[foo].path);
printf("%2d %02x %-30s %s\n", foo, samples[foo].key,
samples[foo].text,
samples[foo].path);
}
}
/* --------------------------------------------------------------------- */

View File

@ -5,6 +5,8 @@
void affiche_un_sample(SampleRef *sref, int options);
void affiche_liste_des_samples(SampleRef samples[]);
int decode_la_ligne(char *line, SampleRef *sref);
int lecture_liste_des_samples(char *fname, SampleRef *array);

View File

@ -47,10 +47,7 @@ fprintf(stderr, "argc = %d, optind = %d\n", argc, optind);
foo = lecture_liste_des_samples(listname, the_samples);
fprintf(stderr,"retour lecture liste '%s' -> %d\n", listname, foo);
for (foo=0; foo<26; foo++) {
printf("%3d %02x %s\n", foo, the_samples[foo].key,
the_samples[foo].text);
}
affiche_liste_des_samples(the_samples);
return 0;
}