Author Topic: How to check if BASS is initialized drom a .dll?  (Read 2037 times)

3delite

  • Posts: 907
Hi!

I am writing a .dll. What would be the most decent way for me to check if there is BASS initialized already (so I can use just 2-3 functions that I GetProcAddress())?
I need a function like:

Code: [Select]
    function IsBASSAvailable: Boolean;

Thanx
3delite

Ian @ un4seen

  • Administrator
  • Posts: 20433
Re: How to check if BASS is initialized drom a .dll?
« Reply #1 on: 2 May '06 - 13:15 »
You can use BASS_GetDevice. If BASS hasn't been initialized, it'll return -1.

3delite

  • Posts: 907
Re: How to check if BASS is initialized drom a .dll?
« Reply #2 on: 2 May '06 - 14:55 »
Ah, cool!

Thanx!