home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaMiscModsCD3.iso / _PROGRAMME / PLAYER / MULTIFORMAT / Aplayer.lha / APlayer / Developers / Include3.0 / Own / AccessiblePlayer.i next >
Encoding:
Text File  |  1994-07-27  |  3.7 KB  |  186 lines

  1. ; AccessiblePlayer Include File
  2. ;
  3.  
  4.     IFND    EXEC_TYPES_I
  5.     INCLUDE    "Exec/Types.i"
  6.     ENDC
  7.  
  8.     IFND    UTILITY_TAGITEM_I
  9.     INCLUDE    "Utility/Tagitem.i"
  10.     ENDC
  11.  
  12. ; Library Offsets
  13.  
  14. apGetTags    =    -30
  15.  
  16. ; Message Numbers
  17.  
  18. MSG_NextMod    =    "NM"
  19. MSG_NextPos    =    "NP"
  20. MSG_CallBack    =    "CB"
  21.  
  22. ; Sample Info Structure
  23.  
  24.     STRUCTURE SampleInfoStruct,0
  25.     STRUCT    SI_Name,24        ;Store a NULL-terminated string with
  26.                     ;the name of the sample here.
  27.     APTR    SI_Address        ;Set this to the start address of the
  28.                     ;sample.
  29.     LONG    SI_Length        ;Set this to the length of the sample
  30.                     ;in bytes.
  31.     LONG    SI_RepLen        ;This should indicate how many bytes
  32.                     ;of the sample to be looped. Zero
  33.                     ;means no loop.
  34.  
  35. ; This Part Are Only Used In The APG_PlaySample Function
  36.  
  37.     UBYTE    SI_Volume        ;Set this to the volume you want.
  38.     UBYTE    SI_Channel        ;Set this to the channel you want to
  39.                     ;use.
  40.     WORD    SI_Period        ;Set this to the period you want to
  41.                     ;play with.
  42.     LABEL    SampleInfoStruct_SIZEOF
  43.  
  44. ; Config Structure
  45.  
  46.     STRUCTURE ConfigStruct,0
  47.     FPTR    CS_GadUpdate        ;Pointer to a function that will fill
  48.                     ;out a tag list with the new values.
  49.                     ;It should return a pointer to the tag
  50.                     ;lists in A0.
  51.     FPTR    CS_Exit            ;Pointer to a Exit function.
  52.     UWORD    CS_Width        ;Window Width.
  53.     UWORD    CS_Height        ;Window Height.
  54.     APTR    CS_Title        ;Pointer To Window Title.
  55.     ULONG    CS_IDCMP        ;Extra IDCMPs. These IDCMPs will
  56.                     ;always be set: GADGETUP, GADGETDOWN,
  57.                     ;VANILLAKEY and MENUPICK.
  58.     APTR    CS_PrefName        ;Pointer to a preference filename
  59.                     ;without a path.
  60.     APTR    CS_PrefData        ;Pointer to your preference data.
  61.     APTR    CS_DefPrefData        ;Pointer to your default pref. data.
  62.     ULONG    CS_PrefSize        ;Number of bytes of your preferences.
  63.  
  64.     UWORD    CS_GadgetNum        ;Number of gadgets you want - 1.
  65.                     ;Then the Gadget Structure if any
  66.                     ;gadgets. See macro below.
  67.  
  68.     UWORD    CS_BevelNum        ;Number of bevel boxes you want - 1.
  69.                     ;Then the Bevel Box Structure if any
  70.                     ;boxes. See macro below.
  71.  
  72. ; Tags
  73.  
  74. APT_TagBase        =    $80000000+"AP"
  75.  
  76.     ENUM    APT_TagBase
  77.  
  78.     EITEM    APT_RequestVersion
  79.     EITEM    APT_EarlyCheck
  80.     EITEM    APT_Check
  81.     EITEM    APT_LoadModule
  82.     EITEM    APT_FreeModule
  83.     EITEM    APT_GetError
  84.     EITEM    APT_ExtLoad
  85.     EITEM    APT_ExtFree
  86.  
  87.     EITEM    APT_InitPlayer
  88.     EITEM    APT_EndPlayer
  89.     EITEM    APT_InitSound
  90.     EITEM    APT_EndSound
  91.  
  92.     EITEM    APT_Interrupt
  93.     EITEM    APT_StartIRQ
  94.     EITEM    APT_StopIRQ
  95.  
  96.     EITEM    APT_Config
  97.  
  98.     EITEM    APT_PlayerName
  99.     EITEM    APT_Description
  100.  
  101.     EITEM    APT_ModuleName
  102.     EITEM    APT_Author
  103.     EITEM    APT_SubSong
  104.  
  105.     EITEM    APT_CIA
  106.     EITEM    APT_Pause
  107.     EITEM    APT_Volume
  108.     EITEM    APT_VolumeFunc
  109.  
  110.     EITEM    APT_FastMem
  111.  
  112.     EITEM    APT_GetMaxPattern
  113.     EITEM    APT_GetMaxSample
  114.     EITEM    APT_GetSongLength
  115.     EITEM    APT_GetSongPos
  116.  
  117.     EITEM    APT_Rewind
  118.     EITEM    APT_Forward
  119.     EITEM    APT_ChangeChannel
  120.     EITEM    APT_TestNextLine
  121.  
  122.     EITEM    APT_GetSample
  123.     EITEM    APT_PlaySample
  124.     EITEM    APT_RealtimePlay
  125.  
  126.     EITEM    APT_CallBack
  127.  
  128. ; Global Data Structure
  129.  
  130.     STRUCTURE APlayerGlobal,0
  131.     ULONG    APG_FileSize
  132.     UWORD    APG_Tune
  133.     WORD    APG_Hz
  134.     UBYTE    APG_MaxVolume
  135.     UBYTE    APG_Tempo
  136.     STRUCT    APG_SampleInfo,SampleInfoStruct_SIZEOF
  137.  
  138.     FPTR    APG_AllocMem
  139.     FPTR    APG_FreeMem
  140.  
  141.     FPTR    APG_GetFilename
  142.     FPTR    APG_FindName
  143.  
  144.     FPTR    APG_CheckLoad
  145.     FPTR    APG_PartialLoad
  146.     FPTR    APG_Load
  147.  
  148.     FPTR    APG_DupOpen
  149.     FPTR    APG_DupClose
  150.     FPTR    APG_Seek
  151.  
  152.     FPTR    APG_PlaySample
  153.  
  154.     FPTR    APG_CalcVolume
  155.     FPTR    APG_WaitDMA
  156.     FPTR    APG_SendMsg
  157.     FPTR    APG_SetTimer
  158.  
  159.     FPTR    APG_NewProcess
  160.  
  161.     FPTR    APG_OpenWindow
  162.     FPTR    APG_WaitMsg
  163.     FPTR    APG_Reply
  164.     FPTR    APG_ActivateGadget
  165.     FPTR    APG_GetGadAdr
  166.     FPTR    APG_Flash
  167.  
  168.     FPTR    APG_AllocChannels
  169.     FPTR    APG_FreeChannels
  170.     LABEL    APlayerGlobal_SIZEOF
  171.  
  172. ; This Macro helps you to make Gadgets in your config window
  173.  
  174. GADSTR    MACRO
  175.     dc.w    \2,\3,\4,\5,\6        ;X, Y, Width, Height, ID
  176.     dc.l    \7,\8,\9        ;Flags, Text, Tags
  177.     dc.w    \1            ;Kind
  178.     ENDM
  179.  
  180. ; This Macro helps you to make Bevel Boxes in your config window
  181.  
  182. BEVSTR    MACRO
  183.     dc.w    \1,\2,\3,\4        ;X, Y, Width, Height
  184.     dc.w    \5            ;Normal (FALSE) Or Recessed (TRUE)
  185.     ENDM
  186.