I remember having asked this question a while ago.
Will it or is it possible to play modules with purebasic?
The Blitzbasic Version of our game uses Modules for creating a bit of atmosphere.
Can I acomplish this with purebasic too?
Mod Support?
-
dracflamloc
- Addict

- Posts: 1648
- Joined: Mon Sep 20, 2004 3:52 pm
- Contact:
Yes, it's possible. You have to download the 'Module' lib for linux here (and check the MIDAS license) : http://www.purebasic.com/download.php3
I did exactly what I read in the Dodumentation.
Thats my code:
And that what I get as response:
Error: Line 4 - InitModule(): Incorrect number of of parameters.
Thats my code:
Code: Select all
If InitSound() = 0
EndIf
If InitModule() = 0
EndIf
egal = loadmodule(1,"laby/sounds/archonsoflight.mod")
playmodule(1)
delay(5000)
Error: Line 4 - InitModule(): Incorrect number of of parameters.
I tried to kill artsd before running it. But I still hear nothing.
Does anybody know what I could do?
Does anybody know what I could do?
Last edited by Brujah on Sat Oct 08, 2005 2:41 am, edited 1 time in total.
I tried around a bit but I still cannot get it working.
This is what I try:
This is what I try:
Code: Select all
If InitSound() = 0
print("Sound Error!!")
end
EndIf
If InitModule(1) = 0
print("Module Error!!")
end
EndIf
egal = loadmodule(0,"/home/markus/laby/sounds/archonsoflight.mod")
playmodule(0)
print("playing...")
repeat
examinekeyboard()
until KeyboardPushed(#PB_Key_Return)
end
Maybe the error lies in the location of the libmidas.a?
The documentation in midas is a bit weird here.
For linking with programs they give you examples for c and delphi.
But I still have no idea about purebasic.
Placing it in the same directory as my program does not work.
Where to place it? Do I have to do something else?
The documentation in midas is a bit weird here.
For linking with programs they give you examples for c and delphi.
But I still have no idea about purebasic.
Placing it in the same directory as my program does not work.
Where to place it? Do I have to do something else?

