mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-21 07:23:19 -04:00
new audio-mixing system and new VST-support-framework
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@25 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
/*
|
||||
* sample_buffer.cpp - container-class sampleBuffer
|
||||
*
|
||||
* Linux MultiMedia Studio
|
||||
* Copyright (c) 2004-2005 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
* Copyright (c) 2005 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
*
|
||||
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public
|
||||
@@ -261,20 +262,22 @@ m_data[frame][chnl] = buf[idx] * fac;
|
||||
else
|
||||
{
|
||||
m_data = new sampleFrame[1];
|
||||
for( Uint8 chnl = 0; chnl < DEFAULT_CHANNELS; ++chnl )
|
||||
memset( m_data, 0, sizeof( *m_data ) * 1 );
|
||||
/* for( Uint8 chnl = 0; chnl < DEFAULT_CHANNELS; ++chnl )
|
||||
{
|
||||
m_data[0][chnl] = 0.0f;
|
||||
}
|
||||
}*/
|
||||
m_frames = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m_data = new sampleFrame[1];
|
||||
for( Uint8 chnl = 0; chnl < DEFAULT_CHANNELS; ++chnl )
|
||||
memset( m_data, 0, sizeof( *m_data ) * 1 );
|
||||
/* for( Uint8 chnl = 0; chnl < DEFAULT_CHANNELS; ++chnl )
|
||||
{
|
||||
m_data[0][chnl] = 0.0f;
|
||||
}
|
||||
}*/
|
||||
m_frames = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user