comparison base/Preferences.h @ 164:da3701a3953e

* Make resampler quality configurable * Fall back to linear resampling when playing very fast * Switch off transient detection in time stretcher when playing very very fast
author Chris Cannam
date Thu, 21 Sep 2006 11:17:19 +0000
parents 059b0322009c
children 91fdc752e540
comparison
equal deleted inserted replaced
163:4148ad087959 164:da3701a3953e
36 virtual QString getPropertyContainerIconName() const; 36 virtual QString getPropertyContainerIconName() const;
37 37
38 bool getSmoothSpectrogram() const { return m_smoothSpectrogram; } 38 bool getSmoothSpectrogram() const { return m_smoothSpectrogram; }
39 float getTuningFrequency() const { return m_tuningFrequency; } 39 float getTuningFrequency() const { return m_tuningFrequency; }
40 WindowType getWindowType() const { return m_windowType; } 40 WindowType getWindowType() const { return m_windowType; }
41 int getResampleQuality() const { return m_resampleQuality; }
41 42
42 //!!! harmonise with PaneStack 43 //!!! harmonise with PaneStack
43 enum PropertyBoxLayout { 44 enum PropertyBoxLayout {
44 VerticallyStacked, 45 VerticallyStacked,
45 Layered 46 Layered
51 52
52 void setSmoothSpectrogram(bool smooth); 53 void setSmoothSpectrogram(bool smooth);
53 void setTuningFrequency(float freq); 54 void setTuningFrequency(float freq);
54 void setPropertyBoxLayout(PropertyBoxLayout layout); 55 void setPropertyBoxLayout(PropertyBoxLayout layout);
55 void setWindowType(WindowType type); 56 void setWindowType(WindowType type);
57 void setResampleQuality(int quality);
56 58
57 private: 59 private:
58 Preferences(); // may throw DirectoryCreationFailed 60 Preferences(); // may throw DirectoryCreationFailed
59 virtual ~Preferences(); 61 virtual ~Preferences();
60 62
62 64
63 bool m_smoothSpectrogram; 65 bool m_smoothSpectrogram;
64 float m_tuningFrequency; 66 float m_tuningFrequency;
65 PropertyBoxLayout m_propertyBoxLayout; 67 PropertyBoxLayout m_propertyBoxLayout;
66 WindowType m_windowType; 68 WindowType m_windowType;
69 int m_resampleQuality;
67 }; 70 };
68 71
69 #endif 72 #endif