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


Manual Reference Pages  -  REGISTER_SAMPLE_FILE_TYPE (3)

NAME

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

CONTENTS

Synopsis
Description
See Also

SYNOPSIS

#include <allegro.h>

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

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:

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

SEE ALSO

load_sample(3), save_sample(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro REGISTER_SAMPLE_FILE_TYPE (3) version 4.4.2

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