Skip to content

Commit

Permalink
fade track (#595)
Browse files Browse the repository at this point in the history
The abrupt stopping sounds bad IMO.
  • Loading branch information
NoSloppy authored Oct 30, 2023
1 parent 34f3357 commit 8c433c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion props/prop_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,8 @@ class PropBase : CommandParser, Looper, protected SaberBase {
void StartOrStopTrack() {
#ifdef ENABLE_AUDIO
if (track_player_) {
track_player_->Stop();
track_player_->set_fade_time(1.0);
track_player_->FadeAndStop();
track_player_.Free();
} else {
MountSDCard();
Expand Down

0 comments on commit 8c433c5

Please sign in to comment.