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 Professional Discussion / Driver conflict with bass.dll (sound-player)

Author
Message
Space Fractal
21
Years of Service
User Offline
Joined: 5th Apr 2004
Location: Denmark
Posted: 22nd Apr 2004 19:10
Hey all!

I Got heavy problems with bass.dll with a driver conflict. When I try to init the driver with BASSInit(1,44100,0), I allways return error code 3 (BASS_ERROR_DRIVER). I think the sounddriver allready are in use by DBP itself (using trail version), and I do not use any sound commands (but use Image Loading commands).

How can I prevent the Compiler not loading the sound system, so I can use bass.dll?

Very regaards
Space Fractal

PS. I tried using the wrapper from http://www.codingarea.co.uk/ and tried to call the dll direct. both witb same result.

PlayITgame.org
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 22nd Apr 2004 19:12 Edited at: 22nd Apr 2004 19:13
Quote: "I think the sounddriver allready are in use by DBP itself (using trail version), "

That shouldn't matter - BASS creates its own sound system. However, it does sound like your sound system cant duplex - in which case you would have to default to DBPro's sound system.

Alternative ways around would be to get a new sound card or update your drivers...


The place for all great plug-ins.
Keeping it Unreal since 2004
Space Fractal
21
Years of Service
User Offline
Joined: 5th Apr 2004
Location: Denmark
Posted: 22nd Apr 2004 21:06
hmmm? Now I got BASSInit to work (it was not a soundcard-driver issue), but it can't load a song:




Very regaards by
Space Fractal

PS. There is no details how to register your wrapper?

PlayITgame.org
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 22nd Apr 2004 22:29 Edited at: 22nd Apr 2004 22:32
Can you e-mail me the MP3 - your code works fine with my music.

Quote: "There is no details how to register your wrapper?"

How do you mean ?


The place for all great plug-ins.
Keeping it Unreal since 2004
Space Fractal
21
Years of Service
User Offline
Joined: 5th Apr 2004
Location: Denmark
Posted: 22nd Apr 2004 23:58
But not here, and have testede several mp3's with 128kbit and 192kbit. All mp3 work fine with all media-players (and DPC own commands). It even not work on my older machine. I use the newsest bass.dll from today, and the interface from your TCA homepage.

The mp3'(s) i tested is copyrighted (ripped from my own brought collection), so I can't email that to you (is to big too, about 9mb).

I get the same error code (37), even if I point to a none exists mp3. Do BASS.dll like the NTFS drives with danish XP pro?

PlayITgame.org
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 23rd Apr 2004 00:04
BASS.DLL works fine with NTFS. Dont know about the Danish version of XP Pro though - come to think of it, I dont know whether it works on the English version of XP Pro - I'll test that tomorrow...

In addition, I'll create a test program which I'll create and e-mail to you (after making sure it works here of course).

It should, of course, work for you - if it doesn't then let me know.


The place for all great plug-ins.
Keeping it Unreal since 2004
Space Fractal
21
Years of Service
User Offline
Joined: 5th Apr 2004
Location: Denmark
Posted: 23rd Apr 2004 00:22
Thanks.

I think you should post the simple test program here, so all users with the same problem, can see it too.

There is a full version for your BASS Interface (some commands like BASSFree, BASSGetInfo is "missing"), but the details links is not there.

http://www.PlayITgame.org
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 23rd Apr 2004 00:52 Edited at: 23rd Apr 2004 01:36
I bet your using the new BASS.DLL - it seems by interface isn't compatible with it...

By the way - an init value of 0, means no sound... It should be 1,44100...

Okay - can you download the RAR file from http://www.codingarea.co.uk/BASS/TestBASS2.rar - and run it.
Its a quiet piece to start with, so give it a while (there should be no errors anyway, to indicate it works).

The commerical version of BASS wont be avaliable until I've changed my code accordinly...


The place for all great plug-ins.
Keeping it Unreal since 2004
Space Fractal
21
Years of Service
User Offline
Joined: 5th Apr 2004
Location: Denmark
Posted: 23rd Apr 2004 01:49
I Found the driver issue with BASS_INIT:

ok=Call dll(203, "BASS_Init", 1,44100,0, 0, 0)
rem wich passed, tried wich the ekstra zeros, when i noticed in the
rem "basstest.c" (wich work fine). Seen to work.

and not

ok=Call dll(203, "BASS_Init", 1,44100,0)
rem with you use in the bass interface, and got the driver error (3)


Now I just to have the file to play (file not exists, wich is mine).

You should fixing this little bug.

http://www.PlayITgame.org
Space Fractal
21
Years of Service
User Offline
Joined: 5th Apr 2004
Location: Denmark
Posted: 23rd Apr 2004 01:58
It working now, using CALL DLL directly (by now).

Would be happy, if you fixing this little init bug in your interface, so it init correct.

Cheers
Space Fractal

http://www.PlayITgame.org
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 23rd Apr 2004 01:59 Edited at: 23rd Apr 2004 02:01
No, I wont fix that - I'm not supporting the CALL DLL version of it any more. Its DBPro format all the way.
If you can test the RAR file, that would be most useful.

The modified code by the way is :




The place for all great plug-ins.
Keeping it Unreal since 2004
Space Fractal
21
Years of Service
User Offline
Joined: 5th Apr 2004
Location: Denmark
Posted: 23rd Apr 2004 02:38
I think you misthinking me. Sorry

That I mean:
I mean it was wrong way to call the dll from the interface. It only calling the dll with using the 3 parameters. It wrong. It need 5 parameters. There was 2 ekstra zeros. This is that way it worked here (it could be changed in a newer version of the dll, wich I use).

The right way (for me) should be BASSInit(1,44100,0,0,0) and BASSInit(1,44100,0) should still been exists.

Cheers
Space Fractal

http://www.PlayITgame.org
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 23rd Apr 2004 10:48
Thats why I did the test program - the extra parameters are new for this version of BASS.


The place for all great plug-ins.
Keeping it Unreal since 2004
Space Fractal
21
Years of Service
User Offline
Joined: 5th Apr 2004
Location: Denmark
Posted: 23rd Apr 2004 13:37
ok.

I have BASS Interface DLL (2.0.0.1) and Bass.dll (Version 2.0 .0.20). These 3 parameteres seen only work on some machines & soundcards (like yours).

The BASS Interface DLL need to be updated to be cooperate with the new INIT of the bass.dll. It should take no time to update.

This is why I now just call the bass.dll directly wich works.

That all and big thank to help
Space Fractal

http://www.PlayITgame.org
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 23rd Apr 2004 14:05
Yes, its what I'm starting to do... Will take a while unfortunately...


The place for all great plug-ins.
Keeping it Unreal since 2004
Space Fractal
21
Years of Service
User Offline
Joined: 5th Apr 2004
Location: Denmark
Posted: 23rd Apr 2004 16:09
ok. Good Working

Cheers

http://www.PlayITgame.org
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 23rd Apr 2004 16:14
Hopefully I'll have the Freeware version finished by the weekend (the commerical version will have to wait a lot longer). The main cause of the delay is the streaming from a URL command has changed, so I've to add a command to let the user know when thats finished.


The place for all great plug-ins.
Keeping it Unreal since 2004

Login to post a reply

Server time is: 2025-06-24 06:02:39
Your offset time is: 2025-06-24 06:02:39