Some compilers don't like x = {} where x is a boost::optional<string>
[libdcp.git] / src / fsk.h
index c73eb177b9f377fc77fa7016757868d6baab56eb..49892d004a01c2630b8c1ad0164d36c3f8ca4dd1 100644 (file)
--- a/src/fsk.h
+++ b/src/fsk.h
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2020 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2020-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
 */
 
 
+/** @file  src/fsk.h
+ *  @brief FSK class
+ */
+
+
 #include <stdint.h>
 #include <vector>
 
@@ -60,15 +65,16 @@ public:
 private:
        std::vector<bool> _data;
        /** current offset into _data */
-       int _data_position;
+       int _data_position = 0;
        /** current sample number of the current bit (0-3) */
-       int _sample_position;
+       int _sample_position = 0;
        /** polarity of the last bit to be written (false for -ve, true for +ve) */
-       bool _last_polarity;
+       bool _last_polarity = false;
        /** value of the last bit to be written */
-       bool _last_bit;
+       bool _last_bit = false;
 };
 
+
 }