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?
Module stop playing
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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:
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"
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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)
Try:
http://www.google.com/search?q=c64+%2B+sid+%2B+dll
cya,
...Danilo
(registered PureBasic user)