Skip to content

Commit

Permalink
Some more code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Apr 7, 2021
1 parent 4f7f9f7 commit 92dcf85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/engine/sync/enginesync.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class EngineSync : public BaseSyncableListener {
void requestBpmUpdate(Syncable* pSyncable, double bpm) override;
void notifyInstantaneousBpmChanged(Syncable* pSyncable, double bpm) override;
void notifyBeatDistanceChanged(Syncable* pSyncable, double beatDistance) override;
void notifyPlayingAudible(Syncable* pSyncable, bool playing) override;
void notifyPlayingAudible(Syncable* pSyncable, bool playingAudible) override;
void notifyScratching(Syncable* pSyncable, bool scratching) override;

// Used to pick a sync target for cases where master sync mode is not sufficient.
Expand Down
2 changes: 1 addition & 1 deletion src/engine/sync/syncable.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class SyncableListener {
virtual void notifyBeatDistanceChanged(
Syncable* pSyncable, double beatDistance) = 0;

virtual void notifyPlayingAudible(Syncable* pSyncable, bool playing) = 0;
virtual void notifyPlayingAudible(Syncable* pSyncable, bool playingAudible) = 0;

virtual Syncable* getMasterSyncable() = 0;
};
2 changes: 1 addition & 1 deletion src/engine/sync/synccontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ void SyncControl::updateAudible() {
int channelIndex = m_pChannel->getChannelIndex();
if (channelIndex >= 0) {
CSAMPLE_GAIN gain = getEngineMaster()->getMasterGain(channelIndex);
bool newAudible = gain > CSAMPLE_GAIN_ZERO ? true : false;
bool newAudible = gain > CSAMPLE_GAIN_ZERO;
if (m_audible != newAudible) {
m_audible = newAudible;
m_pEngineSync->notifyPlayingAudible(this, m_pPlayButton->toBool() && m_audible);
Expand Down

0 comments on commit 92dcf85

Please sign in to comment.