mirror of
https://github.com/LMMS/lmms.git
synced 2026-06-08 22:26:19 -04:00
Move BufferPool::clear to MixHelpers and rewrite
* Move out of BufferPool because it's not related to memory allocation * Rewrite because memset() is not portable because it sets all bytes to zero which depends on the platform's float representation of 0.0 to be all zero bytes
This commit is contained in:
@@ -31,11 +31,11 @@
|
||||
#include "gui_templates.h"
|
||||
#include "MainWindow.h"
|
||||
#include "Mixer.h"
|
||||
#include "MixHelpers.h"
|
||||
#include "Engine.h"
|
||||
#include "ToolTip.h"
|
||||
#include "Song.h"
|
||||
|
||||
#include "BufferPool.h"
|
||||
|
||||
|
||||
VisualizationWidget::VisualizationWidget( const QPixmap & _bg, QWidget * _p,
|
||||
@@ -55,7 +55,7 @@ VisualizationWidget::VisualizationWidget( const QPixmap & _bg, QWidget * _p,
|
||||
const fpp_t frames = Engine::mixer()->framesPerPeriod();
|
||||
m_buffer = new sampleFrame[frames];
|
||||
|
||||
BufferPool::clear( m_buffer, frames );
|
||||
MixHelpers::clear( m_buffer, frames );
|
||||
|
||||
|
||||
ToolTip::add( this, tr( "Oscilloscope" ) );
|
||||
|
||||
Reference in New Issue
Block a user