mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Defined AudioPlayHead::CurrentPositionInfo methods inline
This commit is contained in:
parent
ad0e7b829f
commit
44c92e95c0
2 changed files with 28 additions and 34 deletions
|
|
@ -122,10 +122,35 @@ public:
|
|||
bool isLooping;
|
||||
|
||||
//==============================================================================
|
||||
bool operator== (const CurrentPositionInfo& other) const noexcept;
|
||||
bool operator!= (const CurrentPositionInfo& other) const noexcept;
|
||||
bool operator== (const CurrentPositionInfo& other) const noexcept
|
||||
{
|
||||
return timeInSamples == other.timeInSamples
|
||||
&& ppqPosition == other.ppqPosition
|
||||
&& editOriginTime == other.editOriginTime
|
||||
&& ppqPositionOfLastBarStart == other.ppqPositionOfLastBarStart
|
||||
&& frameRate == other.frameRate
|
||||
&& isPlaying == other.isPlaying
|
||||
&& isRecording == other.isRecording
|
||||
&& bpm == other.bpm
|
||||
&& timeSigNumerator == other.timeSigNumerator
|
||||
&& timeSigDenominator == other.timeSigDenominator
|
||||
&& ppqLoopStart == other.ppqLoopStart
|
||||
&& ppqLoopEnd == other.ppqLoopEnd
|
||||
&& isLooping == other.isLooping;
|
||||
}
|
||||
|
||||
void resetToDefault();
|
||||
bool operator!= (const CurrentPositionInfo& other) const noexcept
|
||||
{
|
||||
return ! operator== (other);
|
||||
}
|
||||
|
||||
void resetToDefault()
|
||||
{
|
||||
zerostruct (*this);
|
||||
timeSigNumerator = 4;
|
||||
timeSigDenominator = 4;
|
||||
bpm = 120;
|
||||
}
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -1563,35 +1563,4 @@ void AudioProcessorParameter::removeListener (AudioProcessorParameter::Listener*
|
|||
listeners.removeFirstMatchingValue (listenerToRemove);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
bool AudioPlayHead::CurrentPositionInfo::operator== (const CurrentPositionInfo& other) const noexcept
|
||||
{
|
||||
return timeInSamples == other.timeInSamples
|
||||
&& ppqPosition == other.ppqPosition
|
||||
&& editOriginTime == other.editOriginTime
|
||||
&& ppqPositionOfLastBarStart == other.ppqPositionOfLastBarStart
|
||||
&& frameRate == other.frameRate
|
||||
&& isPlaying == other.isPlaying
|
||||
&& isRecording == other.isRecording
|
||||
&& bpm == other.bpm
|
||||
&& timeSigNumerator == other.timeSigNumerator
|
||||
&& timeSigDenominator == other.timeSigDenominator
|
||||
&& ppqLoopStart == other.ppqLoopStart
|
||||
&& ppqLoopEnd == other.ppqLoopEnd
|
||||
&& isLooping == other.isLooping;
|
||||
}
|
||||
|
||||
bool AudioPlayHead::CurrentPositionInfo::operator!= (const CurrentPositionInfo& other) const noexcept
|
||||
{
|
||||
return ! operator== (other);
|
||||
}
|
||||
|
||||
void AudioPlayHead::CurrentPositionInfo::resetToDefault()
|
||||
{
|
||||
zerostruct (*this);
|
||||
timeSigNumerator = 4;
|
||||
timeSigDenominator = 4;
|
||||
bpm = 120;
|
||||
}
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue