mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Make more accessors constant
This commit is contained in:
@@ -256,9 +256,8 @@ AudioOutput::setCurrentSource( MediaStream* stream )
|
||||
|
||||
|
||||
AudioOutput::AudioState
|
||||
AudioOutput::state()
|
||||
AudioOutput::state() const
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO;
|
||||
return m_currentState;
|
||||
}
|
||||
|
||||
@@ -274,7 +273,7 @@ AudioOutput::setState( AudioState state )
|
||||
|
||||
|
||||
qint64
|
||||
AudioOutput::currentTime()
|
||||
AudioOutput::currentTime() const
|
||||
{
|
||||
return m_currentTime;
|
||||
}
|
||||
@@ -313,7 +312,7 @@ AudioOutput::setCurrentTime( qint64 time )
|
||||
|
||||
|
||||
qint64
|
||||
AudioOutput::totalTime()
|
||||
AudioOutput::totalTime() const
|
||||
{
|
||||
return m_totalTime;
|
||||
}
|
||||
@@ -429,10 +428,8 @@ AudioOutput::setMuted(bool m)
|
||||
|
||||
|
||||
qreal
|
||||
AudioOutput::volume()
|
||||
AudioOutput::volume() const
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO;
|
||||
|
||||
return m_muted ? 0 : m_volume;
|
||||
}
|
||||
|
||||
|
@@ -43,7 +43,7 @@ public:
|
||||
explicit AudioOutput( QObject* parent = nullptr );
|
||||
~AudioOutput();
|
||||
|
||||
AudioState state();
|
||||
AudioState state() const;
|
||||
|
||||
void setCurrentSource( const QUrl& stream );
|
||||
void setCurrentSource( QIODevice* stream );
|
||||
@@ -58,9 +58,9 @@ public:
|
||||
bool isMuted() const;
|
||||
void setMuted( bool m );
|
||||
void setVolume( qreal vol );
|
||||
qreal volume();
|
||||
qint64 currentTime();
|
||||
qint64 totalTime();
|
||||
qreal volume() const;
|
||||
qint64 currentTime() const;
|
||||
qint64 totalTime() const;
|
||||
void setAutoDelete ( bool ad );
|
||||
|
||||
void setDspCallback( std::function< void( int, int, float*, int, int ) > cb );
|
||||
|
Reference in New Issue
Block a user