0
0

Hi

I have some trouble using “FSOUND_DSP_SetPriority”

I want to move the priority of the spectrum to above the SFX unit, so it wont be alteder by volume or sfx. It should only should only show the original input.

The help file says:
[quote:2okvuyl0]FSOUND_DSP_DEFAULTPRIORITY_CLEARUNIT 0 /* DSP CLEAR unit – done first /
FSOUND_DSP_DEFAULTPRIORITY_SFXUNIT 100 /
DSP SFX unit – done second /
FSOUND_DSP_DEFAULTPRIORITY_MUSICUNIT 200 /
DSP MUSIC unit – done third /
FSOUND_DSP_DEFAULTPRIORITY_USER 300 /
User priority, use this as reference /
FSOUND_DSP_DEFAULTPRIORITY_FFTUNIT 900 /
This reads data for FSOUND_DSP_GetSpectrum, so it comes after user units /
FSOUND_DSP_DEFAULTPRIORITY_CLIPANDCOPYUNIT 1000 /
DSP CLIP AND COPY unit – last */
[/quote:2okvuyl0]

I guess i must place my spectrum before SFX unit.. so 50 outta do it..
So in spectrum.pas(as in Fmod v3.5) i added:

[code:2okvuyl0]procedure TMiniSpectrum.SetEnabled(Value: Boolean);
begin
inherited;
FSOUND_DSP_SetActive(FSOUND_DSP_GetFFTUnit, Value);
FSOUND_DSP_SetPriority(FSOUND_DSP_GetFFTUnit(), 50);

end;[/code:2okvuyl0]

But now the scope is gone.. trying priorities like 150, 250, 350, does make the spectrum to come back, but the volume still has influence.

Btw… i set the volume something like this:
[code:2okvuyl0] FSOUND_SetVolume(Song.Channel, WaveTrackBar.Position);[/code:2okvuyl0]
😮

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.