?login_element?

Subversion Repositories NedoOS

Rev

Rev 2033 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  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. midiuartdelayoverride dw 0
  35. moonsoundstatus ds 1 ; 0 - no device, 1 - MoonSound with old firmware (wave ports not working), 2 - MoonSound OK
  36. tfmstatus ds 1 ; 0 - no device, 1 - found TFM
  37.         ends
  38.  
  39. DEVICE_AY_BIT         = 0
  40. DEVICE_TURBOSOUND_BIT = 1
  41. DEVICE_TFM_BIT        = 2
  42. DEVICE_MOONSOUND_BIT  = 3
  43. DEVICE_GS_BIT         = 4
  44. DEVICE_NEOGS_BIT      = 5
  45. DEVICE_MIDI_UART_BIT  = 6
  46.  
  47. DEVICE_AY_MASK         = 1<<DEVICE_AY_BIT
  48. DEVICE_TURBOSOUND_MASK = 1<<DEVICE_TURBOSOUND_BIT
  49. DEVICE_TFM_MASK        = 1<<DEVICE_TFM_BIT
  50. DEVICE_MOONSOUND_MASK  = 1<<DEVICE_MOONSOUND_BIT
  51. DEVICE_GS_MASK         = 1<<DEVICE_GS_BIT
  52. DEVICE_NEOGS_MASK      = 1<<DEVICE_NEOGS_BIT
  53. DEVICE_MIDI_UART_MASK  = 1<<DEVICE_MIDI_UART_BIT
  54.