mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* On non X11 set our default volume to 75%.
This commit is contained in:
@@ -74,9 +74,10 @@ AudioEngine::AudioEngine()
|
|||||||
connect( m_audioOutput, SIGNAL( volumeChanged( qreal ) ), this, SLOT( onVolumeChanged( qreal ) ) );
|
connect( m_audioOutput, SIGNAL( volumeChanged( qreal ) ), this, SLOT( onVolumeChanged( qreal ) ) );
|
||||||
|
|
||||||
onVolumeChanged( m_audioOutput->volume() );
|
onVolumeChanged( m_audioOutput->volume() );
|
||||||
#ifdef Q_WS_MAC
|
|
||||||
// On mac, phonon volume is independent from system volume, so the onVolumeChanged call above just sets our volume to 100%.
|
#ifndef Q_WS_X11
|
||||||
// Since it's indendent, we'll set it to 75% since that's nicer
|
// On mac & win, phonon volume is independent from system volume, so the onVolumeChanged call above just sets our volume to 100%.
|
||||||
|
// Since it's indendent, we'll set it to 75% since that's nicer.
|
||||||
setVolume( 75 );
|
setVolume( 75 );
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user