Hi everyone,
in a ListenerList I try to call a callback with complex parameters, one is
class FFmpegVideoListener {
public:
virtual void presentationTimestampChanged (const double) {}
virtual void displayNewFrame (const AVFrame*) {}
virtual void displayNewFrame (const juce::Image&) {}
};
// and calling it; no problem with double
double pts = 123.4;
videoListeners.call (&FFmpegVideoListener::presentationTimestampChanged, pts);
// but doesn't compile with pointer or reference
AVFrame* nextFrame;
videoListeners.call (&FFmpegVideoListener::displayNewFrame, nextFrame);
Image outputImage;
videoListeners.call (&FFmpegVideoListener::displayNewFrame, outputImage);
Is this a restriction of the ListenerList template or is there something I did the wrong way?
Thanks for any insight…