home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 15 / MA_Cover_15.iso / source / winquake / cdplayer_protos_stub.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-25  |  2.6 KB  |  132 lines

  1. // Stub functions for protofile "cdplayer_protos.h"
  2. // Generated by genPPCStub 1.1 for StormC
  3. // © 1996/97 HAAGE & PARTNER GmbH
  4.  
  5. // DO NOT EDIT
  6.  
  7. #ifndef PPC
  8. #define PPC
  9. #endif // PPC
  10.  
  11. #include <libraries/powerpc.h>
  12.  
  13. #include <ppcamiga.h>
  14.  
  15. BYTE CDEject(void *arg1)
  16. {
  17.     extern struct Library *CDPlayerBase;
  18.     ULONG regs[16];
  19.     regs[13] = (ULONG) arg1;
  20.     __CallLibrary(CDPlayerBase,-30,regs);
  21.     return (BYTE) regs[0];
  22. }
  23.  
  24. BYTE CDPlay(UBYTE arg1,UBYTE arg2,void *arg3)
  25. {
  26.     extern struct Library *CDPlayerBase;
  27.     ULONG regs[16];
  28.     regs[8] = (ULONG) arg1;
  29.     regs[9] = (ULONG) arg2;
  30.     regs[13] = (ULONG) arg3;
  31.     __CallLibrary(CDPlayerBase,-36,regs);
  32.     return (BYTE) regs[0];
  33. }
  34.  
  35. BYTE CDResume(BOOL arg1,void *arg2)
  36. {
  37.     extern struct Library *CDPlayerBase;
  38.     ULONG regs[16];
  39.     regs[8] = (ULONG) arg1;
  40.     regs[13] = (ULONG) arg2;
  41.     __CallLibrary(CDPlayerBase,-42,regs);
  42.     return (BYTE) regs[0];
  43. }
  44.  
  45. BYTE CDStop(void *arg1)
  46. {
  47.     extern struct Library *CDPlayerBase;
  48.     ULONG regs[16];
  49.     regs[13] = (ULONG) arg1;
  50.     __CallLibrary(CDPlayerBase,-48,regs);
  51.     return (BYTE) regs[0];
  52. }
  53.  
  54. BYTE CDJump(ULONG arg1,void *arg2)
  55. {
  56.     extern struct Library *CDPlayerBase;
  57.     ULONG regs[16];
  58.     regs[8] = (ULONG) arg1;
  59.     regs[13] = (ULONG) arg2;
  60.     __CallLibrary(CDPlayerBase,-54,regs);
  61.     return (BYTE) regs[0];
  62. }
  63.  
  64. BOOL CDActive(void *arg1)
  65. {
  66.     extern struct Library *CDPlayerBase;
  67.     ULONG regs[16];
  68.     regs[13] = (ULONG) arg1;
  69.     __CallLibrary(CDPlayerBase,-60,regs);
  70.     return (BOOL) regs[0];
  71. }
  72.  
  73. ULONG CDCurrentTitle(void *arg1)
  74. {
  75.     extern struct Library *CDPlayerBase;
  76.     ULONG regs[16];
  77.     regs[13] = (ULONG) arg1;
  78.     __CallLibrary(CDPlayerBase,-66,regs);
  79.     return (ULONG) regs[0];
  80. }
  81.  
  82. BYTE CDTitleTime(void *arg1,void *arg2)
  83. {
  84.     extern struct Library *CDPlayerBase;
  85.     ULONG regs[16];
  86.     regs[8] = (ULONG) arg1;
  87.     regs[13] = (ULONG) arg2;
  88.     __CallLibrary(CDPlayerBase,-72,regs);
  89.     return (BYTE) regs[0];
  90. }
  91.  
  92. BYTE CDGetVolume(void *arg1,void *arg2)
  93. {
  94.     extern struct Library *CDPlayerBase;
  95.     ULONG regs[16];
  96.     regs[8] = (ULONG) arg1;
  97.     regs[13] = (ULONG) arg2;
  98.     __CallLibrary(CDPlayerBase,-78,regs);
  99.     return (BYTE) regs[0];
  100. }
  101.  
  102. BYTE CDSetVolume(void *arg1,void *arg2)
  103. {
  104.     extern struct Library *CDPlayerBase;
  105.     ULONG regs[16];
  106.     regs[8] = (ULONG) arg1;
  107.     regs[13] = (ULONG) arg2;
  108.     __CallLibrary(CDPlayerBase,-84,regs);
  109.     return (BYTE) regs[0];
  110. }
  111.  
  112. BYTE CDReadTOC(void *arg1,void *arg2)
  113. {
  114.     extern struct Library *CDPlayerBase;
  115.     ULONG regs[16];
  116.     regs[8] = (ULONG) arg1;
  117.     regs[13] = (ULONG) arg2;
  118.     __CallLibrary(CDPlayerBase,-90,regs);
  119.     return (BYTE) regs[0];
  120. }
  121.  
  122. BYTE CDInfo(void *arg1,void *arg2)
  123. {
  124.     extern struct Library *CDPlayerBase;
  125.     ULONG regs[16];
  126.     regs[8] = (ULONG) arg1;
  127.     regs[13] = (ULONG) arg2;
  128.     __CallLibrary(CDPlayerBase,-96,regs);
  129.     return (BYTE) regs[0];
  130. }
  131.  
  132.