aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Effect
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-06-23 20:53:40 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-06-23 20:53:40 +0000
commit48feab8e723002e9ea3d91aa3f090d7bf7fd5b6b (patch)
treebba66f66d51264bace473cb3408f7f9c4758ef79 /src/plugins/Effect
parent3fdee1de316477cfa8cb68a9b1b4a712350e26f6 (diff)
downloadqmmp-48feab8e723002e9ea3d91aa3f090d7bf7fd5b6b.tar.gz
qmmp-48feab8e723002e9ea3d91aa3f090d7bf7fd5b6b.tar.bz2
qmmp-48feab8e723002e9ea3d91aa3f090d7bf7fd5b6b.zip
fixed remaining gcc warnings
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7254 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Effect')
-rw-r--r--src/plugins/Effect/crossfade/crossfadeplugin.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/plugins/Effect/crossfade/crossfadeplugin.cpp b/src/plugins/Effect/crossfade/crossfadeplugin.cpp
index c7059cd6e..22e5c3fdc 100644
--- a/src/plugins/Effect/crossfade/crossfadeplugin.cpp
+++ b/src/plugins/Effect/crossfade/crossfadeplugin.cpp
@@ -53,13 +53,12 @@ void CrossfadePlugin::applyEffect(Buffer *b)
StateHandler::instance()->sendNextTrackRequest();
m_state = CHECKING;
}
- return;
+ break;
case CHECKING:
//next source has been received and current engine will be used to play it
if(SoundCore::instance()->nextTrackAccepted())
m_state = PREPARING;
- else
- return;
+ break;
case PREPARING:
if(m_core->totalTime() && (m_core->totalTime() - m_handler->elapsed() < m_overlap))
{
@@ -71,12 +70,10 @@ void CrossfadePlugin::applyEffect(Buffer *b)
memcpy(m_buffer + m_buffer_at, b->data, b->samples * sizeof(float));
m_buffer_at += b->samples;
b->samples = 0;
- return;
}
else if(m_buffer_at > 0)
m_state = PROCESSING;
- else
- return;
+ break;
case PROCESSING:
if (m_buffer_at > 0)
{
@@ -88,6 +85,7 @@ void CrossfadePlugin::applyEffect(Buffer *b)
}
else
m_state = WAITING;
+ break;
default:
;
}