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