home *** CD-ROM | disk | FTP | other *** search
Wrap
#define SOUNDCODE_FILLCODE 0 #define SOUNDCODE_PARAMETERS 1 extern "C" { int soundcode_play(int freq, int channels); void soundcode_stop(void); int soundcode_readposition(int *played, int *freespace); int soundcode_fill(short *buffer, int samples, int *used, int *total); int soundcode_control(int newflags, int newreadpos, int newwritepos, int *oldflags, int *oldreadpos, int *oldwritepos, short **bufferstart, int *size); } typedef struct soundcode_memory { short *startaddress; int buffersize; int readpos; int writepos; int channels; int amplitude; int playedsamples; int flags; void *address; void *arg; } soundcode_memory; #define SOUNDCODEFLAGS_PAUSE 1 #define SOUNDCODEFLAGS_REPEAT 2 #define SOUNDCODE_SIZE 100 static int soundcode[SOUNDCODE_SIZE] = { 0x00000030, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000100, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xE92D5C00, 0xE1A0B000, 0xE50F3014, 0xE59B6008, 0xE59B700C, 0xE59B8004, 0xE59B9000, 0xE59B501C, 0xE3150001, 0x1B000040, 0xE0575006, 0x0A00003E, 0xB0855008, 0xE0423001, 0xE1A03123, 0xE59BA010, 0xE35A0002, 0x0A00001C, 0xE1550003, 0xB1A03005, 0xE1A0A003, 0xE7990086, 0xE1A00800, 0xE1800820, 0xE4810004, 0xE2866001, 0xE1560008, 0xA3A06000, 0xE25AA001, 0xCAFFFFF6, 0xE51F0084, 0xE2000007, 0xE3500001, 0x0A000004, 0xE3A00000, 0xE1510002, 0x0A000001, 0xE4810004, 0xEAFFFFFB, 0xE59B001C, 0xE3100002, 0x18FD9C00, 0xE59B0018, 0xE0800003, 0xE58B0018, 0xE58B6008, 0xE8FD9C00, 0xE1A050A5, 0xE1550003, 0xB1A03005, 0xE1A0A003, 0xE7990086, 0xE4810004, 0xE2866002, 0xE1560008, 0xA3A06000, 0xE25AA001, 0xCAFFFFF8, 0xE51F00F4, 0xE2000007, 0xE3500001, 0x0A000004, 0xE3A00000, 0xE1510002, 0x0A000001, 0xE4810004, 0xEAFFFFFB, 0xE59B001C, 0xE3100002, 0x18FD9C00, 0xE59B0018, 0xE0800003, 0xE58B0018, 0xE58B6008, 0xE8FD9C00, 0xE51F0138, 0xE2000007, 0xE3500001, 0x08FD9C00, 0xE3A00000, 0xE4810004, 0xE1510002, 0xBAFFFFFC, 0xE8FD9C00, 0x00000000, 0x00000000, 0x00000000, 0x00000000 };