.\" Generated by the Allegro makedoc utility .TH register_sample_file_type 3alleg4 "version 4.4.3" "Allegro" "Allegro manual" .SH NAME register_sample_file_type \- Registers custom loading/saving sample routines. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B void register_sample_file_type(const char *ext, .B SAMPLE *(*load)(const char *filename), .B int (*save)(const char *filename, SAMPLE *spl)); .SH DESCRIPTION Informs the load_sample() function of a new sample file type, providing routines to read and write samples in this format (either function may be NULL). Example: .nf SAMPLE *load_mp3(const char *filename) { ... } register_sample_file_type("mp3", load_mp3, NULL); .fi .SH SEE ALSO .BR load_sample (3alleg4), .BR save_sample (3alleg4)