diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-12-27 11:09:46 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-12-27 11:09:46 +0000 |
| commit | b5dc393952c84dbd53c60afb8d367ad99bbd16ca (patch) | |
| tree | d8c1ffc992fa60391f04179550a946a056b9b4de /src/plugins/Effect/crossfade/crossfadeplugin.h | |
| parent | d8525aed2bc18ac54e65a996d38df934966c0c7c (diff) | |
| download | qmmp-b5dc393952c84dbd53c60afb8d367ad99bbd16ca.tar.gz qmmp-b5dc393952c84dbd53c60afb8d367ad99bbd16ca.tar.bz2 qmmp-b5dc393952c84dbd53c60afb8d367ad99bbd16ca.zip | |
ported all effect plugins
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5899 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Effect/crossfade/crossfadeplugin.h')
| -rw-r--r-- | src/plugins/Effect/crossfade/crossfadeplugin.h | 15 |
1 files changed, 7 insertions, 8 deletions
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 <QMutex> +#include <stddef.h> #include <qmmp/effect.h> 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; |
