Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / How to use npsid.dll in DarkBasic?

Author
Message
Compton
22
Years of Service
User Offline
Joined: 4th Dec 2002
Location:
Posted: 4th Sep 2003 02:41
Hi,

I was trying to use npsid.dll in DarkBasic, I wanna play Commodore 64 music in my games, the DLL is for download here:

http://www.geocities.com/SiliconValley/Lakes/5147/sidplay/sidplug.html

I've been fiddling around with it, but I'm at a total loss. I'm looking trough various sources here, but my questions are these:

Does this DLL really need a browser? (I personally think not)

Could I just open it trough a simple one line instruction such as call dll "npsid.dll <sidsong name.sid>",1 ?

I'll be exploring further but am interested in a good way to approach this, also I've been looking in the dll with PE Explorer. Btw I haven't got DarkMatter but I do have a full version of 1.13 enhanced.

Thanks in advance!
Compton
22
Years of Service
User Offline
Joined: 4th Dec 2002
Location:
Posted: 5th Sep 2003 04:14
Anyone?
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 5th Sep 2003 20:33
For opening the music I think you will need to use the call dll command:



I've no idea about loading a DLL, though I think you just need to know the name of the function for it to work. Peopl have managed to use normal windows api functions so it seems DB can load regular dlls.



Theres no place like 127.0.0.1
There are 10 people in this world, those who understand binary and those who don't
Bus station = where bus stops. Train station = where train stops. Workstation = ?
Compton
22
Years of Service
User Offline
Joined: 4th Dec 2002
Location:
Posted: 17th Sep 2003 06:18
Hi

I still have troubles with this one, a little help anyone? Thanks David89 so far btw!
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 17th Sep 2003 14:35
I think you posted about this at LLRGT? - is you the same person?

Anyhoo, I suggest making a VB4 app to play the music for you, then run it in the background, communicate with it through the clipboard - and that's about it - the only real way to use an external DLL without darkmatter I'm afraid.

I could look into making the VB4 app, I only have VB6 at home but I'll give it a shot - I prefer VB4 because of it's tiny .exe's and runtimes.


Van-B

My cats breath smells of cat food.
Compton
22
Years of Service
User Offline
Joined: 4th Dec 2002
Location:
Posted: 17th Sep 2003 22:34
No that wasn't me, but I have DarkBasic 1.13 enhanced so I can use DLL's in any program. Sure I could do it with a seperate program but that wouldn't be as easy/fast/cool as just doing it trough a DLL

Login to post a reply

Server time is: 2025-05-20 07:55:39
Your offset time is: 2025-05-20 07:55:39