aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderControl.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-28 10:09:21 +0100
committerMax Kellermann <max@duempel.org>2013-10-28 10:09:21 +0100
commite699f6781e144d02336856d460a74fbaf988447d (patch)
tree326e1737ef617cfb746163aec06837c7bf67e753 /src/DecoderControl.cxx
parent5f13c1cd9c837a9dacd13e0f79032eb828296673 (diff)
downloadmpd-e699f6781e144d02336856d460a74fbaf988447d.tar.gz
mpd-e699f6781e144d02336856d460a74fbaf988447d.tar.xz
mpd-e699f6781e144d02336856d460a74fbaf988447d.zip
decoder_control: rename to DecoderControl
Diffstat (limited to 'src/DecoderControl.cxx')
-rw-r--r--src/DecoderControl.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/DecoderControl.cxx b/src/DecoderControl.cxx
index e3b5f8977..299acac8c 100644
--- a/src/DecoderControl.cxx
+++ b/src/DecoderControl.cxx
@@ -26,13 +26,13 @@
#include <assert.h>
-decoder_control::decoder_control()
+DecoderControl::DecoderControl()
:state(DecoderState::STOP),
command(DecoderCommand::NONE),
song(nullptr),
replay_gain_db(0), replay_gain_prev_db(0) {}
-decoder_control::~decoder_control()
+DecoderControl::~DecoderControl()
{
ClearError();
@@ -41,7 +41,7 @@ decoder_control::~decoder_control()
}
bool
-decoder_control::IsCurrentSong(const Song &_song) const
+DecoderControl::IsCurrentSong(const Song &_song) const
{
switch (state) {
case DecoderState::STOP:
@@ -58,9 +58,9 @@ decoder_control::IsCurrentSong(const Song &_song) const
}
void
-decoder_control::Start(Song *_song,
- unsigned _start_ms, unsigned _end_ms,
- MusicBuffer &_buffer, MusicPipe &_pipe)
+DecoderControl::Start(Song *_song,
+ unsigned _start_ms, unsigned _end_ms,
+ MusicBuffer &_buffer, MusicPipe &_pipe)
{
assert(_song != nullptr);
assert(_pipe.IsEmpty());
@@ -78,7 +78,7 @@ decoder_control::Start(Song *_song,
}
void
-decoder_control::Stop()
+DecoderControl::Stop()
{
Lock();
@@ -96,7 +96,7 @@ decoder_control::Stop()
}
bool
-decoder_control::Seek(double where)
+DecoderControl::Seek(double where)
{
assert(state != DecoderState::START);
assert(where >= 0.0);
@@ -113,7 +113,7 @@ decoder_control::Seek(double where)
}
void
-decoder_control::Quit()
+DecoderControl::Quit()
{
assert(thread.IsDefined());
@@ -124,7 +124,7 @@ decoder_control::Quit()
}
void
-decoder_control::CycleMixRamp()
+DecoderControl::CycleMixRamp()
{
previous_mix_ramp = std::move(mix_ramp);
mix_ramp.Clear();