Remove in-place translations support.
[dcpomatic.git] / src / lib / audio_stream.h
index e50a53b8ad479b1baef0ab229853aa15cfd091a5..cf874242f10b494353a682f382bd32595e8c63c9 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2015-2016 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2015-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
+
 #ifndef DCPOMATIC_AUDIO_STREAM_H
 #define DCPOMATIC_AUDIO_STREAM_H
 
+
 #include "audio_mapping.h"
 #include "types.h"
 #include <boost/thread/mutex.hpp>
 
+
 struct audio_sampling_rate_test;
 
 class AudioStream
 {
 public:
-       AudioStream (int frame_rate, Frame length, int channels);
-       AudioStream (int frame_rate, Frame length, AudioMapping mapping);
+       AudioStream(int frame_rate, Frame length, int channels, boost::optional<int> bit_depth);
+       AudioStream(int frame_rate, Frame length, AudioMapping mapping, boost::optional<int> bit_depth);
        virtual ~AudioStream () {}
 
        void set_mapping (AudioMapping mapping);
@@ -52,6 +55,7 @@ public:
        }
 
        int channels () const;
+       boost::optional<int> bit_depth() const;
 
 protected:
        mutable boost::mutex _mutex;
@@ -63,8 +67,11 @@ private:
        int _frame_rate;
        Frame _length;
        AudioMapping _mapping;
+       boost::optional<int> _bit_depth;
 };
 
-typedef boost::shared_ptr<AudioStream> AudioStreamPtr;
+
+typedef std::shared_ptr<AudioStream> AudioStreamPtr;
+
 
 #endif