Right i have included the .mod music into my program, and all is ok but the one thing i cannot figure out what to do is, (i want the .mod music to pause when the window of my program is not in focus.)
could anyone help me out.
Thankyou
could anyone help me out.
Thankyou
trap WM_SETFOCUS and WM_KILLFOCUS and make appropriate
calls to your mod player library.
calls to your mod player library.
hey! this is my first post so please don't be too rude if I post in the wrong place :)
i'd like to play a .mod file from my app having the .mod file included in my resources and with no external dll or shits... can someone help please ?
thanks in advance.
i'd like to play a .mod file from my app having the .mod file included in my resources and with no external dll or shits... can someone help please ?
thanks in advance.
goebish: you can use bassmod
but for this you must use an external .dll or you can include the dll in the exe (~36kb) using
different techniques (save to disk, PEBundle, ... )
but for this you must use an external .dll or you can include the dll in the exe (~36kb) using
different techniques (save to disk, PEBundle, ... )
the problem with pebundle is that I have to use the Write-to-Disk Bundling method because of the .mod and I wouldn't like my .mod being copied to disk, I want to use it from memory....arghhh i've to find a way!!! :)
anyway thanks a lot for your quick reply !
anyway thanks a lot for your quick reply !
anyone could post a simple template please ?
as f0dder said, just handle the WM_SETFOCUS & WM_KILLFOCUS in your WndProc.
.
.
.elseif uMsg == WM_SETFOCUS
; start playing
.elseif uMsg == WM_KILLFOCUS
; stop playing
.
.
.
Mea culpa Azrim I should have started a new thread coz' your answer isn't the aim of my request :)
sorry, I should be punished.
Is it really legal to bundle up the fmod.dll in your exe?
In fmods licence agreement it says
The FMOD.DLL file may be redistributed without the authors prior permission,
and must remain unmodified. The use of dll 'static linking' tools is
discouraged.
In fmods licence agreement it says
The FMOD.DLL file may be redistributed without the authors prior permission,
and must remain unmodified. The use of dll 'static linking' tools is
discouraged.
I'd prefer to use the bassmod anyway coz' there's a version only playing mod/xm wich is only 36kb....