when just rendering at console, use DEFAULT_BUFFER_SIZE

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1629 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-09-18 21:33:56 +00:00
parent 4736aa66ed
commit e282227c6a

View File

@@ -299,8 +299,14 @@ mixer::mixer( void ) :
m_inputBuffer[i] = new sampleFrame[ DEFAULT_BUFFER_SIZE * 100 ];
clearAudioBuffer( m_inputBuffer[i], m_inputBufferSize[i] );
}
if( configManager::inst()->value( "mixer", "framesperaudiobuffer"
// just rendering?
if( !engine::hasGUI() )
{
m_framesPerPeriod = DEFAULT_BUFFER_SIZE;
m_fifo = new fifo( 1 );
}
else if( configManager::inst()->value( "mixer", "framesperaudiobuffer"
).toInt() >= 32 )
{
m_framesPerPeriod = configManager::inst()->value( "mixer",