home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 10 / AU_CD10.iso / Archived / Updates / Flash / flashplayer / flashlib / h / soundcode < prev   
Encoding:
Text File  |  2000-06-03  |  2.7 KB  |  58 lines

  1.  
  2. #define SOUNDCODE_FILLCODE              0
  3. #define SOUNDCODE_PARAMETERS            1
  4.  
  5. extern "C" {
  6. int soundcode_play(int freq, int channels);
  7. void soundcode_stop(void);
  8. int soundcode_readposition(int *played, int *freespace);
  9. int soundcode_fill(short *buffer, int samples, int *used, int *total);
  10. int soundcode_control(int newflags, int newreadpos, int newwritepos, int *oldflags, int *oldreadpos, int *oldwritepos, short **bufferstart, int *size);
  11. }
  12.  
  13.  
  14. typedef struct soundcode_memory {
  15.   short *startaddress;
  16.   int buffersize;
  17.   int readpos;
  18.   int writepos;
  19.   int channels;
  20.   int amplitude;
  21.   int playedsamples;
  22.   int flags;
  23.   void *address;
  24.   void *arg;
  25. } soundcode_memory;
  26.  
  27. #define SOUNDCODEFLAGS_PAUSE            1
  28. #define SOUNDCODEFLAGS_REPEAT           2
  29.  
  30. #define SOUNDCODE_SIZE 100
  31. static int soundcode[SOUNDCODE_SIZE] = {
  32.                              0x00000030, 0x00000000, 0x00000000, 0x00000000,
  33.                              0x00000000, 0x00000000, 0x00000100, 0x00000000,
  34.                              0x00000000, 0x00000000, 0x00000000, 0x00000000,
  35.                              0xE92D5C00, 0xE1A0B000, 0xE50F3014, 0xE59B6008,
  36.                              0xE59B700C, 0xE59B8004, 0xE59B9000, 0xE59B501C,
  37.                              0xE3150001, 0x1B000040, 0xE0575006, 0x0A00003E,
  38.                              0xB0855008, 0xE0423001, 0xE1A03123, 0xE59BA010,
  39.                              0xE35A0002, 0x0A00001C, 0xE1550003, 0xB1A03005,
  40.                              0xE1A0A003, 0xE7990086, 0xE1A00800, 0xE1800820,
  41.                              0xE4810004, 0xE2866001, 0xE1560008, 0xA3A06000,
  42.                              0xE25AA001, 0xCAFFFFF6, 0xE51F0084, 0xE2000007,
  43.                              0xE3500001, 0x0A000004, 0xE3A00000, 0xE1510002,
  44.                              0x0A000001, 0xE4810004, 0xEAFFFFFB, 0xE59B001C,
  45.                              0xE3100002, 0x18FD9C00, 0xE59B0018, 0xE0800003,
  46.                              0xE58B0018, 0xE58B6008, 0xE8FD9C00, 0xE1A050A5,
  47.                              0xE1550003, 0xB1A03005, 0xE1A0A003, 0xE7990086,
  48.                              0xE4810004, 0xE2866002, 0xE1560008, 0xA3A06000,
  49.                              0xE25AA001, 0xCAFFFFF8, 0xE51F00F4, 0xE2000007,
  50.                              0xE3500001, 0x0A000004, 0xE3A00000, 0xE1510002,
  51.                              0x0A000001, 0xE4810004, 0xEAFFFFFB, 0xE59B001C,
  52.                              0xE3100002, 0x18FD9C00, 0xE59B0018, 0xE0800003,
  53.                              0xE58B0018, 0xE58B6008, 0xE8FD9C00, 0xE51F0138,
  54.                              0xE2000007, 0xE3500001, 0x08FD9C00, 0xE3A00000,
  55.                              0xE4810004, 0xE1510002, 0xBAFFFFFC, 0xE8FD9C00,
  56.                              0x00000000, 0x00000000, 0x00000000, 0x00000000
  57.                           };
  58.