1al_register_sample_saver(3)Library Functions Manualal_register_sample_saver(3)
2
3
4
6 al_register_sample_saver
7
9 #include <allegro5/allegro_audio.h>
10
11 bool al_register_sample_saver(const char *ext,
12 bool (*saver)(const char *filename, ALLEGRO_SAMPLE *spl))
13
15 Register a handler for al_save_sample(3). The given function will be
16 used to handle the saving of sample files with the given extension.
17
18 The extension should include the leading dot ('.') character. It will
19 be matched case-insensitively.
20
21 The saver argument may be NULL to unregister an entry.
22
23 Returns true on success, false on error. Returns false if unregisterā
24 ing an entry that doesn't exist.
25
27 al_register_sample_saver_f(3)
28
29
30
31Allegro reference manual al_register_sample_saver(3)