ALLEGRO_SAMPLE *_al_load_voc(const char *filename) { ALLEGRO_FILE *f; ALLEGRO_SAMPLE *spl; ASSERT(filename); ALLEGRO_INFO("Loading VOC sample %s.\n", filename); f = al_fopen(filename, "rb"); if (!f) { ALLEGRO_WARN("Failed reading %s.\n", filename); return NULL; } spl = _al_load_voc_f(f); al_fclose(f); return spl; }
ALLEGRO_SAMPLE *_al_load_voc(const char *filename) { ALLEGRO_FILE *f; ALLEGRO_SAMPLE *spl; ASSERT(filename); ALLEGRO_INFO("Loading VOC sample %s.\n", filename); f = al_fopen(filename, "rb"); if (!f) { ALLEGRO_ERROR("Unable to open %s for reading.\n", filename); return NULL; } spl = _al_load_voc_f(f); al_fclose(f); return spl; }