?login_element?

Subversion Repositories NedoOS

Rev

Rev 1797 | Rev 2009 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download

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