GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
register_sample_file_type(3) Allegro manual register_sample_file_type(3)

register_sample_file_type - Registers custom loading/saving sample routines. Allegro game programming library.

#include <allegro.h>

void register_sample_file_type(const char *ext, SAMPLE *(*load)(const char *filename), int (*save)(const char *filename, SAMPLE *spl));

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:

   SAMPLE *load_mp3(const char *filename)
   {
      ...
   }
   
      register_sample_file_type("mp3", load_mp3, NULL);

load_sample(3), save_sample(3)
version 4.4.3 Allegro

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.