Skip to content

Commit

Permalink
fastout
Browse files Browse the repository at this point in the history
  • Loading branch information
profezzorn committed Dec 25, 2023
1 parent 0eadfa0 commit 4f72fd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions sound/effect.h
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ EFFECT(blst);
EFFECT(clsh);
EFFECT2(in, pstoff);
EFFECT(out);
EFFECT(fastout);
EFFECT2(lock, lock);
EFFECT(swng);
EFFECT(slsh);
Expand Down
3 changes: 2 additions & 1 deletion sound/hybrid_font.h
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ class HybridFont : public SaberBase, public Looper {
void SB_On() override {
// If preon exists, we've already queed up playing the poweron and hum.
bool already_started = state_ == STATE_WAIT_FOR_ON && SFX_preon;
bool faston = state_ != STATE_WAIT_FOR_ON
if (monophonic_hum_) {
if (!already_started) {
PlayMonophonic(&SFX_poweron, &SFX_hum);
Expand All @@ -509,7 +510,7 @@ class HybridFont : public SaberBase, public Looper {
SaberBase::ClearSoundInfo();
}
} else {
tmp = PlayPolyphonic(getOut());
tmp = PlayPolyphonic(faston && SFX_fastout ? &SFX_fastout : getOut());
}
hum_fade_in_ = 0.2;
if (SFX_humm && tmp) {
Expand Down

0 comments on commit 4f72fd9

Please sign in to comment.