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 */
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);
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]
- Ingolf asked 16 years ago
- You must login to post comments