mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-07 17:42:35 +02:00
* Added playlistChanged() signal to AudioEngine.
This commit is contained in:
parent
9f61eec649
commit
db981757ac
@ -313,7 +313,7 @@ AudioEngine::playItem( PlaylistInterface* playlist, const Tomahawk::result_ptr&
|
||||
|
||||
clearBuffers();
|
||||
|
||||
m_playlist = playlist;
|
||||
setPlaylist( playlist );
|
||||
m_currentTrackPlaylist = playlist;
|
||||
|
||||
loadTrack( result );
|
||||
@ -372,6 +372,14 @@ AudioEngine::clearBuffers()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
AudioEngine::setPlaylist( PlaylistInterface* playlist )
|
||||
{
|
||||
m_playlist = playlist;
|
||||
emit playlistChanged( playlist );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
AudioEngine::setCurrentTrack( const Tomahawk::result_ptr& result )
|
||||
{
|
||||
|
@ -56,7 +56,7 @@ public slots:
|
||||
void mute();
|
||||
|
||||
void playItem( PlaylistInterface* playlist, const Tomahawk::result_ptr& result );
|
||||
void setPlaylist( PlaylistInterface* playlist ) { m_playlist = playlist; }
|
||||
void setPlaylist( PlaylistInterface* playlist );
|
||||
void setQueue( PlaylistInterface* queue ) { m_queue = queue; }
|
||||
|
||||
void onTrackAboutToClose();
|
||||
@ -74,6 +74,8 @@ signals:
|
||||
void timerSeconds( unsigned int secondsElapsed );
|
||||
void timerPercentage( unsigned int percentage );
|
||||
|
||||
void playlistChanged( PlaylistInterface* playlist );
|
||||
|
||||
void error( AudioErrorCode errorCode );
|
||||
|
||||
private slots:
|
||||
|
Loading…
x
Reference in New Issue
Block a user