1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01:00

* Unmute only when previously muted.

This commit is contained in:
Christian Muehlhaeuser 2014-08-27 10:36:32 +02:00
parent aa78bf41f6
commit aeeb1b9df8

View File

@ -537,12 +537,12 @@ AudioEngine::setVolume( int percentage )
{
Q_D( AudioEngine );
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << percentage;
tDebug() << Q_FUNC_INFO << percentage;
percentage = qBound( 0, percentage, 100 );
d->audioOutput->setVolume( (qreal)percentage / 100.0 );
if ( percentage > 0 )
if ( percentage > 0 && d->audioOutput->isMuted() )
d->audioOutput->setMuted( false );
emit volumeChanged( percentage );
}