fix up wscript/build issues in exportvis after merge with master
[ardour.git] / libs / ardour / ardour / beats_frames_converter.h
index e76588ccaafa120af54232bf06f82501c29f7c68..2e170d278a74c350ec45aaecdce04d5e5b05399d 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "evoral/TimeConverter.hpp"
+#include "ardour/libardour_visibility.h"
 #include "ardour/types.h"
 
 #ifndef __ardour_beats_frames_converter_h__
@@ -29,13 +30,13 @@ namespace ARDOUR {
 
 class TempoMap;
 
-/** Converter between beats and frames.  Takes durations in beats or frames
- *  and converts them using the tempo at the \a origin supplied to the constructor.
- *  Note that this does not covert positions, only durations.
+/** Converter between beats and frames.  Takes distances in beats or frames
+ *  from some origin (supplied to the constructor in frames), and converts
+ *  them to the opposite unit, taking tempo changes into account.
  */
-class BeatsFramesConverter : public Evoral::TimeConverter<double,framepos_t> {
+class LIBARDOUR_API BeatsFramesConverter : public Evoral::TimeConverter<double,framepos_t> {
 public:
-       BeatsFramesConverter (const TempoMap& tempo_map, framepos_t origin)
+       BeatsFramesConverter (TempoMap& tempo_map, framepos_t origin)
                : Evoral::TimeConverter<double, framepos_t> (origin)
                , _tempo_map(tempo_map)
        {}
@@ -44,7 +45,7 @@ public:
        double     from (framepos_t frames) const;
 
 private:
-       const TempoMap& _tempo_map;
+       TempoMap& _tempo_map;
 };
 
 } /* namespace ARDOUR */