miscellanous fixes
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/branches/lmms/stable-0.3@647 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -683,7 +683,7 @@ void bitInvader::smoothClicked( void )
|
||||
|
||||
void bitInvader::playNote( notePlayHandle * _n, bool )
|
||||
{
|
||||
if ( _n->totalFramesPlayed() == 0 )
|
||||
if ( _n->totalFramesPlayed() == 0 || _n->m_pluginData == NULL )
|
||||
{
|
||||
|
||||
float factor;
|
||||
|
||||
@@ -288,7 +288,7 @@ QString organicInstrument::nodeName( void ) const
|
||||
|
||||
void organicInstrument::playNote( notePlayHandle * _n, bool )
|
||||
{
|
||||
if( _n->totalFramesPlayed() == 0 )
|
||||
if( _n->totalFramesPlayed() == 0 || _n->m_pluginData == NULL )
|
||||
{
|
||||
oscillator * oscs_l[m_num_oscillators];
|
||||
oscillator * oscs_r[m_num_oscillators];
|
||||
|
||||
@@ -416,7 +416,7 @@ void mallets::playNote( notePlayHandle * _n, bool )
|
||||
int p = m_presets->value();
|
||||
|
||||
const float freq = _n->frequency();
|
||||
if ( _n->totalFramesPlayed() == 0 )
|
||||
if ( _n->totalFramesPlayed() == 0 || _n->m_pluginData == NULL )
|
||||
{
|
||||
float vel = static_cast<float>( _n->getVolume() ) / 100.0f;
|
||||
|
||||
|
||||
@@ -625,7 +625,7 @@ QString tripleOscillator::nodeName( void ) const
|
||||
|
||||
void tripleOscillator::playNote( notePlayHandle * _n, bool )
|
||||
{
|
||||
if( _n->totalFramesPlayed() == 0 )
|
||||
if( _n->totalFramesPlayed() == 0 || _n->m_pluginData == NULL )
|
||||
{
|
||||
oscillator * oscs_l[NUM_OF_OSCILLATORS];
|
||||
oscillator * oscs_r[NUM_OF_OSCILLATORS];
|
||||
|
||||
@@ -549,7 +549,7 @@ QString vibed::nodeName( void ) const
|
||||
|
||||
void vibed::playNote( notePlayHandle * _n, bool )
|
||||
{
|
||||
if ( _n->totalFramesPlayed() == 0 )
|
||||
if ( _n->totalFramesPlayed() == 0 || _n->m_pluginData == NULL )
|
||||
{
|
||||
_n->m_pluginData = new stringContainer( _n->frequency(),
|
||||
engine::getMixer()->sampleRate(),
|
||||
|
||||
Reference in New Issue
Block a user