Set Stk::showWarnings() via LMMS_DEBUG (#3309)

This commit is contained in:
Oskar Wallgren
2017-01-30 16:07:25 +01:00
committed by GitHub
parent c8e987348d
commit 3e21e4ee13

View File

@@ -620,8 +620,10 @@ malletsSynth::malletsSynth( const StkFloat _pitch,
Stk::setSampleRate( _sample_rate );
Stk::setRawwavePath( QDir( ConfigManager::inst()->stkDir() ).absolutePath()
.toLatin1().constData() );
#ifndef LMMS_DEBUG
Stk::showWarnings( false );
#endif
m_voice = new ModalBar();
m_voice->controlChange( 16, _control16 );
@@ -668,8 +670,10 @@ malletsSynth::malletsSynth( const StkFloat _pitch,
Stk::setSampleRate( _sample_rate );
Stk::setRawwavePath( QDir( ConfigManager::inst()->stkDir() ).absolutePath()
.toLatin1().constData() );
#ifndef LMMS_DEBUG
Stk::showWarnings( false );
#endif
m_voice = new TubeBell();
m_voice->controlChange( 1, _control1 );
@@ -714,7 +718,9 @@ malletsSynth::malletsSynth( const StkFloat _pitch,
Stk::setSampleRate( _sample_rate );
Stk::setRawwavePath( QDir( ConfigManager::inst()->stkDir() ).absolutePath()
.toLatin1().constData() );
#ifndef LMMS_DEBUG
Stk::showWarnings( false );
#endif
m_voice = new BandedWG();