Skip to content

Commit

Permalink
Set Stk::showWarnings() via LMMS_DEBUG (#3309)
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine authored Jan 30, 2017
1 parent c8e9873 commit 3e21e4e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions plugins/stk/mallets/mallets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -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 );
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 3e21e4e

Please sign in to comment.