Hi!
I fooled a bit around with the source code as after an hour of playtime I noticed a loop didn't end on its own...
So, I added a configuration dialog where you can input the number of times you would like a song to get played.
e.g.
0: .org file will loop infinite times
1: .org file will play once
2: .org file will play once and jump to the loop-position at the end to play once more (=> play 2 times)
3: .org file will play 3 times
etc.
I also fixed a volume-problem that caused the .org to play at full volume every time.
Install:
Copy the in_org.dll into your WinAmp/Plugin/ directory and restart Winamp.
Usage:
Winamp -> Options -> Settings -> Plugins -> input -> JTE's org player v1.08 config -> configurate
Change Value accordant to the explanation above to what you want.
Developing:
as the Licence is the WTFPL, I took the liberty to make a wxdevc++ project out of it and added a .rh and .h file for the dialogs. other changes regard the init() function (loading settings), the config-function (creating the settings window) and some #defines to for the config-window. The main-functionality change is minor and consists of a few changed/added lines in set_step().
Furthermore I commented the "mod.outMod->SetVolume(255);"-line out within the play()-function. I'm not sure why you wanted to force the songs be played at full volume, but I like to be able to control my pc-volume on my own.
As I'm not related to the main development, I made a new subversion 1.08 but with a text-postfix "config" to indicate this is a branch.
Download (with source)
http://phi.pf-control.de/Programms/in_org108config.zip
Tested:
I used the .org files from
http://www.cavestory.org/download/music.php and they seem to play as expected with this dll-branch.
Btw: maybe Github would be a more suitable place for this form of open-source/WTFPL/Code-Project ?