Clarify error message when file cannot be created,
[ardour.git] / libs / audiographer / audiographer / types.h
index 5d31899748ab5628a63bd90d0880d979bf785c1f..faa3ad4f31191dd39a387f18ec0ac2f152b92d3e 100644 (file)
@@ -3,35 +3,17 @@
 
 #include <stdint.h>
 
+#include "audiographer/visibility.h"
+
 namespace AudioGrapher {
 
-typedef int64_t nframes_t;
+/* XXX: copied from libardour */
+typedef int64_t samplecnt_t;
+
 typedef uint8_t ChannelCount;
 
-/** Flag field capable of holding 32 flags.
-    Easily grown in size to 64 flags by changing storage_type */
-class FlagField {
-  public:
-       typedef uint8_t  Flag;
-       typedef uint32_t storage_type;
-       
-       FlagField() : _flags (0) {}
-       FlagField(FlagField const & other) : _flags (other._flags) {}
-       
-       inline bool has (Flag flag)    const { return _flags & (1 << flag); }
-       inline storage_type flags ()   const { return _flags; }
-       inline operator bool()         const { return _flags; }
-       inline void set (Flag flag)          { _flags |= (1 << flag); }
-       inline void remove (Flag flag)       { _flags &= ~(1 << flag); }
-       inline void reset ()                 { _flags = 0; }
-       
-       inline FlagField & operator+= (FlagField const & other) { _flags |= other._flags; return *this; }
-       inline bool operator== (FlagField const & other) const { return _flags == other._flags; }
-
-  private:
-       storage_type _flags;
-};
+typedef float DefaultSampleType;
 
 } // namespace
 
-#endif // __audiographer_types_h__
\ No newline at end of file
+#endif // AUDIOGRAPHER_TYPES_H