Merge pull request #2383 from M374LX/audiobuffercontainer

Move Mixer::clearAudioBuffer() to BufferManager
This commit is contained in:
Colin Wallace
2015-10-02 18:14:27 +00:00
9 changed files with 43 additions and 46 deletions

View File

@@ -40,6 +40,13 @@ class EXPORT BufferManager
public:
static void init( fpp_t framesPerPeriod );
static sampleFrame * acquire();
// audio-buffer-mgm
static void clear( sampleFrame * ab, const f_cnt_t frames,
const f_cnt_t offset = 0 );
#ifndef LMMS_DISABLE_SURROUND
static void clear( surroundSampleFrame * ab, const f_cnt_t frames,
const f_cnt_t offset = 0 );
#endif
static void release( sampleFrame * buf );
static void refresh();
// static void extend( int c );

View File

@@ -315,16 +315,6 @@ public:
m_playHandleRemovalMutex.unlock();
}
// audio-buffer-mgm
static void clearAudioBuffer( sampleFrame * _ab,
const f_cnt_t _frames,
const f_cnt_t _offset = 0 );
#ifndef LMMS_DISABLE_SURROUND
static void clearAudioBuffer( surroundSampleFrame * _ab,
const f_cnt_t _frames,
const f_cnt_t _offset = 0 );
#endif
static float peakValueLeft( sampleFrame * _ab, const f_cnt_t _frames );
static float peakValueRight( sampleFrame * _ab, const f_cnt_t _frames );