diff options
Diffstat (limited to 'src/player.cc')
-rw-r--r-- | src/player.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/player.cc b/src/player.cc index 58d3897..e57211d 100644 --- a/src/player.cc +++ b/src/player.cc @@ -79,6 +79,9 @@ Player::Player(Info *ginfo, recording = false; recording_prev = !recording; cprchanged = false; + + muted = false; + muted_prev = !muted; } Player::~Player() @@ -205,7 +208,10 @@ void Player::player() pitches); // Set status text - yuv_draw->mute(true); + // if(muted != muted_prev) { + yuv_draw->mute(muted); + // muted_prev = muted; + // } if(recording != recording_prev) { if(recording) yuv_draw->setTopText(TEXT_RECORDING); else yuv_draw->setTopText(TEXT_STOPPED); @@ -308,4 +314,9 @@ void Player::stoprecord() recording = false; } +void Player::setMute(bool m) +{ + muted = m; +} + #endif /* USE_GUI */ |