mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
Restore volume restoring
This commit is contained in:
@@ -193,6 +193,9 @@ AudioEngine::AudioEngine()
|
|||||||
connect( d->audioOutput, SIGNAL( tick( qint64 ) ), SLOT( timerTriggered( qint64 ) ) );
|
connect( d->audioOutput, SIGNAL( tick( qint64 ) ), SLOT( timerTriggered( qint64 ) ) );
|
||||||
connect( d->audioOutput, SIGNAL( aboutToFinish() ), SLOT( onAboutToFinish() ) );
|
connect( d->audioOutput, SIGNAL( aboutToFinish() ), SLOT( onAboutToFinish() ) );
|
||||||
|
|
||||||
|
onVolumeChanged( d->audioOutput->volume() );
|
||||||
|
setVolume( TomahawkSettings::instance()->volume() );
|
||||||
|
|
||||||
qRegisterMetaType< AudioErrorCode >("AudioErrorCode");
|
qRegisterMetaType< AudioErrorCode >("AudioErrorCode");
|
||||||
qRegisterMetaType< AudioState >("AudioState");
|
qRegisterMetaType< AudioState >("AudioState");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user