A problem/question I have regarding xmplay..

Started by DarkAngel,

DarkAngel

I'm new, so bear with me..

With xmplay, whenever I hit enter on a file in windows commander (same as double clicking on a file in explorer), it loads into xmplay and starts playing..

great..that's good.
but if I instantly decide I don't like that song, and press enter on the next one, xmplay ignores the song.

I have to wait a second or two before I'm allowed to change songs..

modplug player doesn't do this, but winamp and xmplay do.. so there must be some logical reason why...does anyone know?


Olego

#1
The reason is that in Windows, if you select many files and press Enter, Explorer will attempt to open each one with a new process.  So if you select 10 text files, you will have 10 different Notepads.  (Or Grown Up Notepads--go TheGUN! ;D)  Obviously you wouldn't want 10 XMPlays to concurrently play 10 different songs, so when XMPlay is opened, it checks for other XMPlays, and if one is already playing, then the song is passed to the playing process.  Thus, if you open 10 XMPlays, the first will start playing, and the other 9 will tell that first one that they've been opened.  Now, normally, XMPlay would start playing each of those 9 other songs in order, and end up playing the last one, but that wouldn't be what you intended, so there's a delay--if XMPlay receives songs in the first 1.5 seconds, then it loads them into playlist, otherwise, it plays them immediately.

Now, I tried to persuade Ian to make this adjustable, and now that the majority of the population wants some sort of a .ini file, maybe the delay could be adjusted in well:

FileLoadDelayMSEC=1000

:)  Hope you liked my explanation!  And I also hope that Ian will implement this!  :)

[edit]I can't spell at 2 am![/edit]

~Olego~

DarkAngel

Thanks very much for that detailed explanation. It makes sense ..but I don't use explorer.. I wish I could override it. It bugs me that winamp does it as well..

Thanks again.