1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 01:09:42 +01:00

* Fixed TWK-812: Persistent volume settings across sessions.

This commit is contained in:
Christian Muehlhaeuser 2012-05-27 18:24:16 +02:00
parent 8830593f1d
commit 5e0d8d2292

View File

@ -86,19 +86,16 @@ AudioEngine::AudioEngine()
onVolumeChanged( m_audioOutput->volume() );
#ifndef Q_WS_X11
// 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 );
#endif
setVolume( TomahawkSettings::instance()->volume() );
}
AudioEngine::~AudioEngine()
{
tDebug() << Q_FUNC_INFO;
m_mediaObject->stop();
// stop();
TomahawkSettings::instance()->setVolume( volume() );
delete m_audioOutput;
delete m_mediaObject;