Following ScopeCallBack doen’t work anymore since I installed version 3.61
Public Sub Init_DSP()
ReDim ScopeBufferINT(0 To FSOUND_DSP_GetBufferLength) As Integer
ReDim ScopeBufferFPU(0 To FSOUND_DSP_GetBufferLength) As Single
[color=red:3tpxy0l2]ScopeUnit = FSOUND_DSP_Create(AddressOf ScopeCallback, FSOUND_DSP_DEFAULTPRIORITY_USER + 3, 0)[/color:3tpxy0l2]
FSOUND_DSP_SetActive FSOUND_DSP_GetFFTUnit(), True
[color=red:3tpxy0l2]FSOUND_DSP_SetActive ScopeUnit, True[/color:3tpxy0l2]
Public Function ScopeCallback(ByVal originalbuffer As Long, ByVal newbuffer As Long, ByVal Length As Long, ByVal param As Long) As Long
If UseSpectrum = False Then
RealtimeBuf = newbuffer
ScopeCallback = newbuffer
- Anonymous asked 15 years ago
Well, I wrote that callback, what’s wrong with it? It works fine for me, you just need to call the functions that I worte to convert the RealTimeBuff into VB arrays. And also use the STDCALL version of FMOD because you need it to do callbacks in VB.
- Paranoid_Android answered 15 years ago
Thanks for the quick reponse,
Is the latest FMOD version 3.61 (20/12/2002) not compatible with STDCALL version of FMOD (30/11/2002) ?
When I use STDCALL version of FMOD (30/11/2002) it works again.
Next I concluded that the FSOUND_CD_GetTrackLength(drive,track) and FSOUND_CD_GetTrackTime(drive) returns 0 only for the last track on a cd, all the other tracks are working fine.
Best Regards Tony
- Anonymous answered 15 years ago
I concluded that the FSOUND_CD_SetVolume affects the “system CD volume control”, in reality it’s impossible to connect your 2 or more CD devices to 1 system volume control.
Second I only can have access to my default CD device when the parameter “char drive” in “FSOUND_CD_SetVolume(char drive, int volume) is set to “0”.
When I try to set this parameter to “G” or “H” there is no reaction on my CD devices.
- Anonymous answered 14 years ago
Please login first to submit.