, _playlist (playlist)
, _set_progress (set_progress)
#ifdef DCPOMATIC_HAVE_EBUR128_PATCHED_FFMPEG
- , _ebur128 (new AudioFilterGraph(film->audio_frame_rate(), film->audio_channels()))
+ , _ebur128(film->audio_frame_rate(), film->audio_channels())
#endif
, _sample_peak (film->audio_channels())
, _sample_peak_frame (film->audio_channels())
#ifdef DCPOMATIC_HAVE_EBUR128_PATCHED_FFMPEG
_filters.push_back (new Filter("ebur128", "ebur128", "audio", "ebur128=peak=true"));
- _ebur128->setup (_filters);
+ _ebur128.setup(_filters);
#endif
_current = std::vector<AudioPoint>(_film->audio_channels());
#ifdef DCPOMATIC_HAVE_EBUR128_PATCHED_FFMPEG
if (Config::instance()->analyse_ebur128 ()) {
- _ebur128->process (b);
+ _ebur128.process(b);
}
#endif
#ifdef DCPOMATIC_HAVE_EBUR128_PATCHED_FFMPEG
if (Config::instance()->analyse_ebur128 ()) {
- void* eb = _ebur128->get("Parsed_ebur128_0")->priv;
+ void* eb = _ebur128.get("Parsed_ebur128_0")->priv;
vector<float> true_peak;
for (int i = 0; i < _film->audio_channels(); ++i) {
true_peak.push_back (av_ebur128_get_true_peaks(eb)[i]);
#include "audio_analysis.h"
+#include "audio_filter_graph.h"
#include "dcpomatic_time.h"
#include "types.h"
#include <leqm_nrt.h>
class AudioAnalysis;
class AudioBuffers;
-class AudioFilterGraph;
class AudioPoint;
class Film;
class Filter;
dcpomatic::DCPTime _start;
#ifdef DCPOMATIC_HAVE_EBUR128_PATCHED_FFMPEG
- std::shared_ptr<AudioFilterGraph> _ebur128;
+ AudioFilterGraph _ebur128;
#endif
std::vector<Filter const *> _filters;
Frame _samples_per_point = 1;