Bass.dll

Blitz3D Forums/Blitz3D Userlibs/Bass.dll

Clyde(Posted 2005) [#1]
I dont suppose any of you have had any dilema and or problems in using the Bass.dll with bb programs?

I've tried for yonks, to get it to initialize the dll from within the Blitz. Peoples exe's work fine and dandy, which is kinda odd to me. I've replaced the decals, I've resorted to an earlier Blitz installation and back again. But, it just still insists that the .dll (Bass) wont initialize.

It's a shame really if I am the only person on the planet, having difficulties with Bass and Blitz. As for one thing I had a whole heap of ideas for special fx to try out and interact with.

I thought it had to do with the last couple ofupdates, as everything worked around then. But no one at BR seems to really know, as the bug report has been up with no trace of recognition. Not that im complaining mind, just frustrated thats all.

If anyone can help put me out of my mysery with suggestions in getting Bass to init. It would be fantastic news and mucho, appreciated.

Cheers and many thanks,
Clyde :)


LAB[au](Posted 2005) [#2]
It depends which bass.dll (and obviously decls) you are using...versions before 2.0 or after. In version 2.1 do like this:

BASS_Init(1,44100,BASS_DEVICE_LATENCY,0,0)

and it's intialized!


Clyde(Posted 2005) [#3]
Thanks, but how do I find out which versions I'm using of the decals and the Bass.dll ? :)

And for version 2.o and previous would be?

It's a shame there's nothing at the un4seen site on using bass with Blitz.

Cheers and many many thanks,
Clyde


Clyde(Posted 2005) [#4]
Well, after few weeks of head scratching I've managed to narrow the problem down ( which I dont know how to fix which Im hoping someone can help me out with please ) Is that the B3D IDE along with Bass cannot detect my sound card. If I generate an EXEcutable of any programs that use Bass, they work fine and dandy. So it's defineatly the IDE at fault!!

I've also used the test / example programs that come with the full Bass package from Un4Seen - and they worked without hesitation.

I thought it may be an IDE fault with DEP, however I have Data Execution Prevention set to 'Turn On DEP for essential windows programs and services only' - so it 'should' be disabled for anything none Windows XP SP2?

Any help in this matter, is greatly appreciated - as Im at my wits end over this.

Thanks so much,
Clyde :)


ervin(Posted 2005) [#5]
Hi everyone. I believe this is my first post, after lurking for almost a year.

I've been struggling with the same bass.dll problem.

I had a bass.dll in my c:\windows\system32 folder.
It was leftover from a program I tried that used bass.

I renamed that file so it would not be picked up by the IDE.

Then I made sure that my C:\Program Files\Blitz3D\userlibs folder contained bass.dll and bass.decls.

I'm not sure what effect it has if you have the bass.dll and decls files in the same folder as your project. Probably the neatest way is to have them in the userlibs folder.

The decls file version is something I can't seem to figure out for sure... but to find out the version of the bass.dll, use Dependency Walker. If it's not installed on your system, download it (from Microsoft I think).
With that installed, you can double-click the dll file and you get a comprehensive information window telling you the version ("Image Ver" column in the bottom pane), as well as a list of the functions available in the dll.

The point here is that it looks like the decls file must be matched to the dll version. I think. Someone please correct me if this is wrong, as it still confuses me.

Also, if your project has
include "bass.bb"
make sure that bass.bb is in the same folder as your main project, or that the include points to the right path/file.

Hope this helps.
As I said, I'm still struggling with it myself.


Clyde(Posted 2005) [#6]
Cool somebody else in the same boat! :)

Are you saying then that If there are diferent bass.dll versions anywhere on my PC, this will cause conflicts and confusion for the IDE not to pick up on things, like not being able to 'Initialize the dll'? And for not being able to detect my sound card? It's bizzarre that bass induced bb programs compile and work as executables, but cause grief within the IDE.

I'd of thought there's only one set of decals for bass. As I dont believe anyones made different versions to accompany each version of bass.dll.

Cheers,
Clyde :)


ervin(Posted 2005) [#7]
I don't think it's about bass.dll files being anywhere on your PC, but more about whether or not there is one in your userlibs folder, and one in your project folder. I imagine it is only NEEDED in the userlibs folder. Same goes for the decls file, I think.
Whether or not one in the system32 folder makes a difference is anyone's guess!
Regardless, if they are different versions, it seems that it may be the cause of some problems.

I think the decls can differ, if any functions exposed by the dll have differing parameter lists from version to version.
But I really don't know enough about decls files to say for sure, so I'm definitely open to correction here!

As for an executable working, and within the IDE not working, I would guess that is because the decls are compiled into the executable, and the bass.dll supplied with an executable matches the decls compiled in.

Disclaimer: this is only a theory - it could be complete hogwash for all I know. It kind of makes sense to me this way though!
If anyone knows for sure, please enlighten us!

In fact, does anyone know of any decls tutorials? I've had a bit of a look around for one, without any luck so far.


Clyde(Posted 2005) [#8]
Well im buggered if I know whats up with this :(

If anyone does know why B3D IDE + Using Bass = No Sound Card Present then please let me know, many thanks for your time - Clyde


LAB[au](Posted 2005) [#9]
The bass.dll is needed in your userlibs folder AND in your project folder, the .decls has to be only in your userlibs folder. For userlib tutorial look in the specs and utils page on this website. The decls and dll versions have to be the same off course (initialisation changed from version 2.0 of bass).


Clyde(Posted 2005) [#10]
Thanks :)
All the above is all present as it's always been.


ervin(Posted 2005) [#11]
Thanks LAB[au]. That should help immensely.