Remove AudioTimingController::HasLabels as the rewritten audio display doesn't need it

Originally committed to SVN as r6253.
This commit is contained in:
Thomas Goyne 2012-01-08 01:37:12 +00:00
parent d04753aaf2
commit f4c8bf429b
3 changed files with 1 additions and 11 deletions

View File

@ -81,17 +81,9 @@ public:
virtual SampleRange GetPrimaryPlaybackRange() const = 0;
/// @brief Get all rendering style ranges
/// @param[out] swpts Rendering ranges will be added to this
/// @param[out] ranges Rendering ranges will be added to this
virtual void GetRenderingStyles(AudioRenderingStyleRanges &ranges) const = 0;
/// @brief Does this timing mode have labels on the audio display?
/// @return True if this timing mode needs labels on the audio display.
///
/// This is labels for things such as karaoke syllables. When labels are
/// required, some vertical space is set off for them in the drawing of the
/// audio display.
virtual bool HasLabels() const = 0;
/// @brief Go to next timing unit
///
/// Advances the timing controller cursor to the next timing unit, for

View File

@ -218,7 +218,6 @@ public:
SampleRange GetIdealVisibleSampleRange() const;
SampleRange GetPrimaryPlaybackRange() const;
void GetRenderingStyles(AudioRenderingStyleRanges &ranges) const;
bool HasLabels() const { return false; }
void GetLabels(SampleRange const& range, std::vector<AudioLabel> &out) const { }
void Next();
void Prev();

View File

@ -123,7 +123,6 @@ public:
SampleRange GetIdealVisibleSampleRange() const;
void GetRenderingStyles(AudioRenderingStyleRanges &ranges) const;
SampleRange GetPrimaryPlaybackRange() const;
bool HasLabels() const { return true; }
void GetLabels(const SampleRange &range, std::vector<AudioLabel> &out_labels) const;
void Next();
void Prev();