Page 1 of 1
Posted: Sun Sep 08, 2002 4:32 pm
by BackupUser
Restored from previous forum. Originally posted by pantera.
Hi, when i'm playing a module in ordinary windowed mode
the module stop playing when the window loses it's focus.
Something tells me it's the midas11.dll because playing movies,
wavs etc. doesn't have this "problem"...anyways is there a way
to do a workaround? with threads? Anybody got an idea?
Posted: Mon Sep 09, 2002 10:44 pm
by BackupUser
Restored from previous forum. Originally posted by chr1sb.
I use Bassmod for playing music in PB. It's smaller than midas11.dll + it's easy to load music from memory as well as from disk.
Get it from
http://www.un4seen.com/music/ (scroll down for the bassmod download link)
Here's a small sample code:
Code: Select all
OpenLibrary(0, "bassmod.dll")
If OpenWindow(0, 200, 200, 200, 200, #PB_Window_SystemMenu | #PB_Window_MinimizeGadget , "PureBasic Window")
CallFunction(0, "BASSMOD_Init" ,-1,44010,16)
CallFunction(0, "BASSMOD_MusicLoad",1,?music,0,0,2)
CallFunction(0, "BASSMOD_SetVolume",50)
CallFunction(0, "BASSMOD_MusicPlay")
Repeat
EventID.l = WindowEvent()
Until EventID = #PB_Event_CloseWindow
CallFunction(0, "BASSMOD_MusicStop")
CloseLibrary(0)
EndIf
End
music:
IncludeBinary"test.xm"
chr1sb
Posted: Tue Sep 10, 2002 1:26 pm
by BackupUser
Restored from previous forum. Originally posted by pantera.
Thank you
That hit the spot.
Now for the €1.000.000 question...
A sid library (C64), where can i find one ?
Posted: Tue Sep 10, 2002 3:25 pm
by BackupUser
Restored from previous forum. Originally posted by Danilo.
Try:
http://www.google.com/search?q=c64+%2B+sid+%2B+dll
cya,
...Danilo
(registered PureBasic user)