void mus_sound_report_cache(FILE *fp) { sound_file *sf; int entries = 0; int i, j; sound_file **sound_table; fprintf(fp, "sound table:"); for (j = 0; j < NUM_SOUND_TABLES; j++) { int sound_table_size; sound_table = sound_tables[j]; sound_table_size = sound_table_sizes[j]; for (i = 0; i < sound_table_size; i++) { sf = sound_table[i]; if (sf) { if (entries == 0) fprintf(fp, "\n"); display_sound_file_entry(fp, sf->file_name, sf); entries++; } } } if (entries > 0) fprintf(fp, "\nentries: %d\n", entries); else fprintf(fp, " empty"); fflush(fp); }
void mus_sound_report_cache(FILE *fp) { sound_file *sf; int entries = 0; int i; fprintf(fp, "sound table:\n"); for (i = 0; i < sound_table_size; i++) { sf = sound_table[i]; if (sf) { display_sound_file_entry(fp, sf->file_name, sf); entries++; } } fprintf(fp, "\nentries: %d\n", entries); fflush(fp); }