0
0

I did not know what to call the subject but it does explain the problem. If I move the open window, therefore giving it focus, the spectrum analyser stops until I release the window. The same happens when I have a listbox and click on the scroll bars. How do I keep the spectrum working whenever something else has focus?

  • You must to post comments
0
0

this is not a FMOD problem i think :roll:
Maybe i can help you if you send some code ๐Ÿ˜‰

good luck

chris

  • You must to post comments
0
0

I will post the code or send if you give me an email address, its just that I have seen other FMOD Players and this does not happen.

Thanx

TBE

  • You must to post comments
0
0

If you put the code related to the drawing of the spectrum in a thread, this wil be fixed :)

  • You must to post comments
0
0

This is the Spectrum Code, Amplifier is a value that can be adjusted on screen to compensate for the diiferent volumes that sounds have been recorded at, it also allows you to turn up the spectrum display when the sound volume is lowered.

Private Sub Oscilater4() ‘Uses all 512 Pieces of SpectralData
Loopy = 0
If FSOUND_DSP_GetActive(FSOUND_DSP_GetFFTUnit) > 0 Then
iy2 = picSpectrum.ScaleHeight / 2
GetSpectrum SpectralData
picSpectrum.Cls
Do While Loopy <> 512
iy1 = SpectralData(Loopy) * (picSpectrum.ScaleHeight / 6 * Amplifier)
ix1 = ix1 + (picSpectrum.ScaleWidth / 511)
ix2 = ix1
picSpectrum.Line (ix1, picSpectrum.ScaleHeight / 2 + iy1)-(ix2, picSpectrum.ScaleHeight / 2 – iy1), RGB(157, 194, 141), BF
If ix1 > picSpectrum.ScaleWidth Then
ix1 = 0
End If
Loopy = Loopy + 1
Loop
ix1 = 0
Else
‘Enable it first
FSOUND_DSP_SetActive FSOUND_DSP_GetFFTUnit, 1
End If
End Sub

Hope you guys can help with the problem

TBE

  • You must to post comments
0
0

uh … no, nothing …

  • You must to post comments
0
0

I don’t see a problem :(
Is the function called if its in focus or not???

Chris

  • You must to post comments
0
0

Mmhhh am i Casper The Ghost ? ๐Ÿ˜†

  • You must to post comments
0
0

[quote:1puzk8e7]I don’t see a problem
Is the function called if its in focus or not???

Chris[/quote:1puzk8e7]

I tried calling the routine when the picspectrum was not in focus but it makes no difference. Is this what u meant?

TBE

  • You must to post comments
0
0

Because Visual Basic is Single Threaded, it will hold everything else as long as you are holding the title bar and moving it.

It might be that code inside a Timer are still loaded, so you might try to work with a timer.
Another possibility is to write your own window moving code, which will update the graphics from time to time.

  • You must to post comments
Showing 9 results
Your Answer

Please first to submit.