comparison src/Analyser.h @ 399:ffd1a89a68fa cxx11-types

Build fixes etc
author Chris Cannam
date Wed, 11 Mar 2015 11:54:29 +0000
parents 6b57c58b88d2
children a0eedd10dee3
comparison
equal deleted inserted replaced
352:7178bb4dcdfb 399:ffd1a89a68fa
53 // Discard any layers etc associated with the current document 53 // Discard any layers etc associated with the current document
54 void fileClosed(); 54 void fileClosed();
55 55
56 void setIntelligentActions(bool); 56 void setIntelligentActions(bool);
57 57
58 bool getDisplayFrequencyExtents(float &min, float &max); 58 bool getDisplayFrequencyExtents(double &min, double &max);
59 bool setDisplayFrequencyExtents(float min, float max); 59 bool setDisplayFrequencyExtents(double min, double max);
60 60
61 // Return completion %age for initial analysis -- 100 means it's done 61 // Return completion %age for initial analysis -- 100 means it's done
62 int getInitialAnalysisCompletion(); 62 int getInitialAnalysisCompletion();
63 63
64 enum Component { 64 enum Component {
98 void setGain(Component c, float gain); 98 void setGain(Component c, float gain);
99 99
100 float getPan(Component c) const; 100 float getPan(Component c) const;
101 void setPan(Component c, float pan); 101 void setPan(Component c, float pan);
102 102
103 void getEnclosingSelectionScope(size_t f, size_t &f0, size_t &f1); 103 void getEnclosingSelectionScope(sv_frame_t f, sv_frame_t &f0, sv_frame_t &f1);
104 104
105 struct FrequencyRange { 105 struct FrequencyRange {
106 FrequencyRange() : min(0), max(0) { } 106 FrequencyRange() : min(0), max(0) { }
107 FrequencyRange(float min_, float max_) : min(min_), max(max_) { } 107 FrequencyRange(double min_, double max_) : min(min_), max(max_) { }
108 bool isConstrained() const { return min != max; } 108 bool isConstrained() const { return min != max; }
109 float min; 109 double min;
110 float max; 110 double max;
111 }; 111 };
112 112
113 /** 113 /**
114 * Analyse the selection and schedule asynchronous adds of 114 * Analyse the selection and schedule asynchronous adds of
115 * candidate layers for the region it contains. Returns "" on 115 * candidate layers for the region it contains. Returns "" on