It all works fine now, looking at the encoding and the callbacks.
But I have encountered a serious problem which has to do with VB, I think.
There is a serious memory read error when I move my mouse, simply as that.
I do believe that this is the feared CallbackSafety problem...
And the SafeCallBack.dll doesn't help me, because I can't use the real callback anymore. And I can only use safecallback with a timer which is a good as nothing.
I could have easily done all my work before with a timer and WITHOUT a safecallback, I guess.
So there is no point for me to try to work with the callbacks anymore because of the stupidity of VisualBasic.
That's right, isn't it? Or what else could it be that every time I do something that's a bit heavy for a computer (like moving a mouse pointer LOL
) it crashes.
It's true isn't it... tell me it's not VB... PLEASE!!! Just tell me that's doing a mega mistake somewhere....
My code in the CallBack is:
Public Function RECORDPROC(ByVal handle As Long, ByVal buffer As Long, ByVal length As Long, ByVal user As Long) As Long
iLevel = LoWord(BASS_ChannelGetLevel(Chan)) 'check the record level
If bEncoderLoaded = True Then
BASS_Encode_Write! handle, buffer, length