From 98c2a2a3de8a5e7095f232db0dfc48d0e896cde3 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Thu, 3 Apr 2008 20:20:09 +0000 Subject: [PATCH] use sampleFrame-array instead of surroundSampleFrame-array for processing git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@872 0778d3d1-df1d-0410-868b-ea421aaaa00d --- include/audio_port.h | 8 ++++---- src/core/audio/audio_port.cpp | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/include/audio_port.h b/include/audio_port.h index 357c7ae8a..68aec4415 100644 --- a/include/audio_port.h +++ b/include/audio_port.h @@ -39,11 +39,11 @@ public: audioPort( const QString & _name, track * _track ); ~audioPort(); - inline surroundSampleFrame * firstBuffer( void ) + inline sampleFrame * firstBuffer( void ) { return( m_firstBuffer ); } - inline surroundSampleFrame * secondBuffer( void ) + inline sampleFrame * secondBuffer( void ) { return( m_secondBuffer ); } @@ -120,8 +120,8 @@ public: } private: - surroundSampleFrame * m_firstBuffer; - surroundSampleFrame * m_secondBuffer; + sampleFrame * m_firstBuffer; + sampleFrame * m_secondBuffer; QMutex m_firstBufferLock; QMutex m_secondBufferLock; diff --git a/src/core/audio/audio_port.cpp b/src/core/audio/audio_port.cpp index 6567401f0..46e459fa3 100644 --- a/src/core/audio/audio_port.cpp +++ b/src/core/audio/audio_port.cpp @@ -35,9 +35,8 @@ audioPort::audioPort( const QString & _name, track * _track ) : m_bufferUsage( NoUsage ), - m_firstBuffer( new surroundSampleFrame[ - engine::getMixer()->framesPerPeriod()] ), - m_secondBuffer( new surroundSampleFrame[ + m_firstBuffer( new sampleFrame[engine::getMixer()->framesPerPeriod()] ), + m_secondBuffer( new sampleFrame[ engine::getMixer()->framesPerPeriod()] ), m_extOutputEnabled( FALSE ), m_nextFxChannel( 0 ),