Re: VSTi and audio output
Posted: Mon Sep 01, 2014 6:25 am
thanks for the help. my results - I can open the VST without any problems, to open the editor. But I did not turn out to deal with the data output from the audio output on ProcessReplacing using waveOutWrite_.
Where to store a pointer ptrOutputBuffers ()?
Where to store a pointer ptrOutputBuffers ()?
Code: Select all
wave.WAVEOUTCAPS
devices = waveOutGetNumDevs_()
For devnum=-1 To devices-1
If waveOutGetDevCaps_(devnum,@wave,SizeOf(WAVEOUTCAPS))=0
Debug ""
For i=0 To 31
tmp$+Chr(wave\szPname[i])
Next
Debug tmp$
tmp$=""
EndIf
Next
If waveOutOpen_(@hWaveOut,-1,@wavFormat,*hwnd,0,0) = #MMSYSERR_NOERROR
Debug "waveOutOpen_ [ok]"
Else
Debug "error"
EndIf
....... bla bla bla........
Repeat
event = WaitWindowEvent()
*myAEffect\ProcessReplacing(*myAEffect,0,@ptrOutputBuffers(),blocksize); for VSTi
;waveOutPrepareHeader_(hWaveOut, @WaveHdr, SizeOf(WaveHdr));
waveOutWrite_(hWaveOut, @WaveHdr, SizeOf(WaveHdr));
Until event = #PB_Event_CloseWindow