Forums
How to get the result buffers from CTSLFourier.SpectrumOutputPin. - Printable Version

+- Forums (http://mitov.com/forum)
+-- Forum: Visual C++ / MFC Components (/forum-7.html)
+--- Forum: SignalLab (/forum-24.html)
+--- Thread: How to get the result buffers from CTSLFourier.SpectrumOutputPin. (/thread-3597.html)



How to get the result buffers from CTSLFourier.SpectrumOutputPin. - eric2935 - 04-25-2017 11:49 AM

Dear sir,

I am using Audio DSP Combo V5.0.3 with VisualStudio 2013 with MFC.

How can I get the result buffers from CTSLFourier.SpectrumOutputPin
or any other outputpin?

My code is like below.
-----------------------
void __stdcall OnGenericRealFFTSpectrumEvent(void *Sender, TSLCRealBuffer InBuffer, TSLCRealBuffer &OutBuffer, bool &SendOutputData);

CTSLFourier m_SLFourier;
CTSLGenericReal m_SLGenericReal;
...

m_SLFourier.SpectrumOutputPin.Connect(m_SLGenericReal.InputPin);
m_SLGenericReal.OnProcessData.Set(this, &CMyView::OnGenericRealFFTSpectrumEvent);
...
-----------------------

Compile error occurred like below.
-----------------------
error C2440: '...' : 'void (__stdcall CMyView::* )(void *,TSLCRealBuffer,TSLCRealBuffer &,bool &)'.. 'CSLProcessRealEvent::TProcessCallBackFunction' ..... c:\program files (x86)\labpacks\visual c++\include\cslgenericreal.h 41 1 ...
-----------------------

Is there any other solution?
Please anyone give me suggest.

Thanks.