+ std::vector<PeakTime> sample_peak () const {
+ return _sample_peak;
+ }
+
+ std::pair<PeakTime, int> overall_sample_peak () const;
+
+ std::vector<float> true_peak () const {
+ return _true_peak;
+ }
+
+ boost::optional<float> overall_true_peak () const;
+
+ boost::optional<float> integrated_loudness () const {
+ return _integrated_loudness;
+ }
+
+ boost::optional<float> loudness_range () const {
+ return _loudness_range;
+ }
+
+ boost::optional<double> analysis_gain () const {
+ return _analysis_gain;
+ }
+
+ void set_analysis_gain (double gain) {
+ _analysis_gain = gain;
+ }
+
+ int64_t samples_per_point () const {
+ return _samples_per_point;
+ }
+
+ void set_samples_per_point (int64_t spp) {
+ _samples_per_point = spp;
+ }
+
+ int sample_rate () const {
+ return _sample_rate;
+ }
+
+ void set_sample_rate (int sr) {
+ _sample_rate = sr;
+ }
+
+ void write (boost::filesystem::path);
+
+ float gain_correction (boost::shared_ptr<const Playlist> playlist);