Move Mixer::clearAudioBuffer() to BufferManager

This commit is contained in:
M374LX
2015-09-27 00:36:17 -03:00
parent dabfc63cda
commit e801384eed
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 );