Supporters update.
[dcpomatic.git] / src / lib / audio_filter_graph.h
index 91216c7c3657cb4c88b4ed4533c3ca650b28ef8d..e5c55fa273b22009564b98fcce92f0f92bee3157 100644 (file)
 
 */
 
+
+#ifndef DCPOMATIC_AUDIO_FILTER_GRAPH_H
+#define DCPOMATIC_AUDIO_FILTER_GRAPH_H
+
+
 #include "filter_graph.h"
 extern "C" {
 #include <libavfilter/buffersink.h>
@@ -31,13 +36,13 @@ public:
        AudioFilterGraph (int sample_rate, int channels);
        ~AudioFilterGraph ();
 
-       void process (std::shared_ptr<const AudioBuffers> audio);
+       void process (std::shared_ptr<AudioBuffers> audio);
 
 protected:
-       std::string src_parameters () const;
-       std::string src_name () const;
-       void* sink_parameters () const;
-       std::string sink_name () const;
+       std::string src_parameters () const override;
+       std::string src_name () const override;
+       void set_parameters (AVFilterContext* context) const override;
+       std::string sink_name () const override;
 
 private:
        int _sample_rate;
@@ -45,3 +50,7 @@ private:
        int64_t _channel_layout;
        AVFrame* _in_frame;
 };
+
+
+#endif
+