miscellanous fixes
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@648 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
12
ChangeLog
12
ChangeLog
@@ -1,3 +1,15 @@
|
||||
2008-01-05 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* plugins/organic/organic.cpp:
|
||||
* plugins/bit_invader/bit_invader.cpp:
|
||||
* plugins/vibed/vibed.cpp:
|
||||
* plugins/triple_oscillator/triple_oscillator.cpp:
|
||||
* plugins/stk/mallets/mallets.cpp:
|
||||
make sure, pluginData-pointer is always initialized in playNote()
|
||||
|
||||
* src/core/envelope_and_lfo_widget.cpp:
|
||||
simple range-checking
|
||||
|
||||
2008-01-02 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* include/dummy_effect.h:
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ(2.50)
|
||||
AC_INIT(lmms, 0.4.0-svn20080102, lmms-devel/at/lists/dot/sf/dot/net)
|
||||
AM_INIT_AUTOMAKE(lmms, 0.4.0-svn20080102)
|
||||
AC_INIT(lmms, 0.4.0-svn20080105, lmms-devel/at/lists/dot/sf/dot/net)
|
||||
AM_INIT_AUTOMAKE(lmms, 0.4.0-svn20080105)
|
||||
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
|
||||
@@ -535,7 +535,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;
|
||||
|
||||
@@ -261,7 +261,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];
|
||||
|
||||
@@ -401,7 +401,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;
|
||||
|
||||
|
||||
@@ -577,7 +577,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];
|
||||
|
||||
@@ -468,7 +468,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(),
|
||||
|
||||
@@ -521,6 +521,11 @@ void FASTCALL envelopeAndLFOWidget::fillLevel( float * _buf, f_cnt_t _frame,
|
||||
const f_cnt_t _release_begin,
|
||||
const fpp_t _frames )
|
||||
{
|
||||
if( _frame < 0 || _release_begin < 0 )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
fillLFOLevel( _buf, _frame, _frames );
|
||||
|
||||
for( fpp_t offset = 0; offset < _frames; ++offset, ++_buf, ++_frame )
|
||||
|
||||
Reference in New Issue
Block a user