?login_element?

Subversion Repositories NedoOS

Rev

Rev 1760 | Rev 1992 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. PLAYERSTART = 0x4000
  2.  
  3.         macro PLAYERHEADER
  4.         dw playerinit      ;called once, should check if sound device is available (if possible)
  5.         dw playerdeinit    ;called once when the application is exiting
  6.         dw musicload       ;function that loads the file allocating all required resources
  7.         dw musicunload     ;function that frees all resources allocated in musicload and mutes the sound device
  8.         dw musicplay       ;function called in the main loop, should update progress variable
  9.         dw isfilesupported ;function to determine if this player can handle the file
  10.         dw playernamestr   ;player name string
  11.         dw 0 ;address of the song title, zero means the title is unavailable and file name should be displayed instead
  12.         dw 0 ;address of play progress variable, setting this to zero disables progress bar
  13.         endm
  14.  
  15. PLAYERINITPROCADDR      = PLAYERSTART+0x00
  16. PLAYERDEINITPROCADDR    = PLAYERSTART+0x02
  17. MUSICLOADPROCADDR       = PLAYERSTART+0x04
  18. MUSICUNLOADPROCADDR     = PLAYERSTART+0x06
  19. MUSICPLAYPROCADDR       = PLAYERSTART+0x08
  20. ISFILESUPPORTEDPROCADDR = PLAYERSTART+0x0a
  21. PLAYERNAMESTRADDR       = PLAYERSTART+0x0c
  22. MUSICTITLEADDR          = PLAYERSTART+0x0e
  23. MUSICPROGRESSADDR       = PLAYERSTART+0x10
  24.  
  25.         struct GPSETTINGS
  26. sharedpages ds 3
  27. usemp3 dw 0
  28. usemwm dw 0
  29. usept3 dw 0
  30. usevgm dw 0
  31. usemoonmod dw 0
  32. moonmoddefaultpanning dw 0
  33.         ends
  34.