Author Topic: BASS_WADSP - Unable to emulate a Winamp Window Class  (Read 5035 times)

3delite

  • Posts: 925

What could be the couse of this error? :-\
 

radio42

  • Posts: 4597
Re: BASS_WADSP - Unable to emulate a Winamp Window Class
« Reply #1 on: 21 Jan '06 - 15:40 »
Have you called "BassWa.BASS_WADSP_Init( this.Handle );" resp. "BASS_WADSP_Init Me.hWnd"
or whatever language you are using?


3delite

  • Posts: 925
Re: BASS_WADSP - Unable to emulate a Winamp Window Class
« Reply #2 on: 22 Jan '06 - 19:13 »
 
I am using Delphi.
I think I do call:
Code: [Select]
BASS_WADSP_Init(MainForm.Handle);
The problem I am having is that I change the device for BASS, and after this change, 2 of the 4 DSP plugins is giving "Unable to emulate a Winamp Window Class" error. Here:
Code: [Select]
Pluginz.Index[i - 1].Handle := BASS_WADSP_Load(PChar(Pluginz.Index[i - 1].FileName), Screen.Width div 4, Screen.Height div 4, 200, 200, nil);
The other 2 seems working fine afterwards. ???
Not a big problem, restarting the application after device change will avoid it, I just don't understand where the problem is. I don't understand how 2 plugins do work. Or is that somerthing to do with the bad plugins require this Winamp Window Class? Or can it bee that I need to call
Code: [Select]
BASS_WADSP_Free()
when changing the device?
EDIT: I do call BASS_WADSP_Free() too. Don't understand!

Any pointers? :)
« Last Edit: 22 Jan '06 - 19:15 by 3delite »

radio42

  • Posts: 4597
Re: BASS_WADSP - Unable to emulate a Winamp Window Class
« Reply #3 on: 23 Jan '06 - 09:10 »
Sounds really strange. What two Winamp PlugIns are causing the problems?
So I will try doing the same with those 2 plugins to see, if I can find anything...

3delite

  • Posts: 925
Re: BASS_WADSP - Unable to emulate a Winamp Window Class
« Reply #4 on: 23 Jan '06 - 10:47 »
The plugins are:
dsp_enh.dll
dsp_eqFIR.dll
dsp_srnd.dll
dsp_SS1.dll
Tha last two are giving this error (when initializing them for the second time).
Not a big problem just strange...

Can I change device with DSP plugins loaded, or must I load them again on device change?
I'll try this and I'll see...
« Last Edit: 23 Jan '06 - 11:49 by 3delite »

radio42

  • Posts: 4597
Re: BASS_WADSP - Unable to emulate a Winamp Window Class
« Reply #5 on: 23 Jan '06 - 12:54 »
So if you want them to load again, you need to call "BASS_WADSP_FreeDSP(Int32 plugin)" beforehand.
Otherwise the call will fail, since a winamp DSP dll can not be loaded twice.

So there are two scenrios:
a) you just want to "reload" a winamp DSP plugin (but not use it in parallel):
    - call "BASS_WADSP_FreeDSP()" before loaded it the second time again

b) you want to load a winamp DSP plugin multiple times to assign it to different streams in parallel:
    - you need to copy the .dll file multiple times to temp. names before and then load the different files

3delite

  • Posts: 925
Re: BASS_WADSP - Unable to emulate a Winamp Window Class
« Reply #6 on: 23 Jan '06 - 14:48 »
 
I was unloading with BASS_WADSP_FreeDSP() and then reloading with BASS_WADSP_Load() but forget it, it seems ok, to change output audio device with DSP plugins already loaded, so there is no problem! ;)

The a) version was I doing, but that didn't work! When loading for the second time gave that error!

Thanx, I fixed it, with the help from you!!! ;)
 
« Last Edit: 23 Jan '06 - 14:50 by 3delite »

radio42

  • Posts: 4597
Re: BASS_WADSP - Unable to emulate a Winamp Window Class
« Reply #7 on: 23 Jan '06 - 15:05 »
OKi, perfect and true: if you just change the BASS device there is no need for unloading the Winamp DSP...since it does keep nothing internally...the only thing what you need to do is to set the new channel (eg. via "BASS_WADSP_SetChannel")...thats all.

3delite

  • Posts: 925
Re: BASS_WADSP - Unable to emulate a Winamp Window Class
« Reply #8 on: 23 Jan '06 - 15:54 »
 
I use:
Code: [Select]
BASS_WADSP_ChannelSetDSP();
and it seems fine!
 

radio42

  • Posts: 4597
Re: BASS_WADSP - Unable to emulate a Winamp Window Class
« Reply #9 on: 23 Jan '06 - 16:56 »
Yepp, same thing! Perfect...

3delite

  • Posts: 925
Re: BASS_WADSP - Unable to emulate a Winamp Window Class
« Reply #10 on: 23 Jan '06 - 19:20 »
 
:)