Page 1 of 1

FMODEX Linux Media Player

Posted: Sun Nov 02, 2008 4:21 am
by Inner
http://www.snapdrive.net/qs/4ec1d0d86a21

It's not complete but should be good for observations on how to do something with the FMODEX library, there are admittedly some strange bugs with playlists most notably the delete items, where by you select a number of items, and tell it to delete them and it actually doesn't delete them all but a few of them.

Code: Select all

;
; Playlist delete item(s)
;
Procedure Playlist_Delete()
  For i=0 To ListSize(playlist())
    If GetGadgetItemState(#GAD_PLAYLIST,i)=1
      SelectElement(playlist(),i)
      DeleteElement(playlist())
      Debug playlist()\file
      RemoveGadgetItem(#GAD_PLAYLIST,i)
    EndIf
  Next
EndProcedure
That's the procedure your looking for if you wanted to fix it, other than that I've not completed the sort functionality yet either, it only does track, but anyway have fun.

You add playlists by typing there name into the combo drop down box, and then clicking the Add Folder button, to save it press the [S] button, the [L] button loads what you was playing previously before quit last.

To sort click on the combobox at the bottom to track (because it's the only one implemented right now), highlight a section you want sorted, and click [sort].

Volume will stay where you put it regardless of quit and reload.

Some procedure calls are commented out because they break.