From b5dc393952c84dbd53c60afb8d367ad99bbd16ca Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 27 Dec 2015 11:09:46 +0000 Subject: ported all effect plugins git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5899 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Effect/crossfade/crossfadeplugin.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/plugins/Effect/crossfade/crossfadeplugin.h') diff --git a/src/plugins/Effect/crossfade/crossfadeplugin.h b/src/plugins/Effect/crossfade/crossfadeplugin.h index 065369b1b..229756b76 100644 --- a/src/plugins/Effect/crossfade/crossfadeplugin.h +++ b/src/plugins/Effect/crossfade/crossfadeplugin.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2010-2014 by Ilya Kotov * + * Copyright (C) 2010-2015 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -21,6 +21,7 @@ #define CROSSFADEPLUGIN_H #include +#include #include class SoundCore; @@ -38,7 +39,7 @@ public: virtual ~CrossfadePlugin(); void applyEffect(Buffer *b); - void configure(quint32 freq, ChannelMap map, Qmmp::AudioFormat format); + void configure(quint32 freq, ChannelMap map); private: enum State @@ -49,13 +50,11 @@ private: PROCESSING, }; - void mix8(uchar *cur_buf, uchar *prev_buf, uint samples, double volume); - void mix16(uchar *cur_buf, uchar *prev_buf, uint samples, double volume); - void mix32(uchar *cur_buf, uchar *prev_buf, uint samples, double volume); + void mix(float *cur_buf, float *prev_buf, uint samples, double volume); - uchar *m_buffer; - ulong m_buffer_at; - ulong m_buffer_size; + float *m_buffer; + size_t m_buffer_at; + size_t m_buffer_size; qint64 m_overlap; int m_state; SoundCore *m_core; -- cgit v1.2.3-13-gbd6f