Fixed problem with adding strings to vibed plugin while playing

Modified Files:
  plugins/vibed/impulse_editor.cpp
  plugins/vibed/impulse_editor.h
  plugins/vibed/string_container.cpp
  plugins/vibed/string_container.h
  plugins/vibed/vibed.cpp
  plugins/vibed/vibed.h


git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@120 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Danny McRae committed 2006-04-06 14:27:24 +00:00
1 parent 512b407dbd
commit e11ca5bb9f
7 files changed
+36 -9

No files matched your search

+9 -2
View File
@@ -27,11 +27,16 @@
stringContainer::stringContainer(const float _pitch,
const sample_rate_t _sample_rate,
const Uint32 _buffer_length ) :
const Uint32 _buffer_length,
const Uint8 _strings ) :
m_pitch( _pitch ),
m_sampleRate( _sample_rate ),
m_bufferLength( _buffer_length )
{
for( Uint8 i = 0; i < _strings; i++ )
{
m_exists.append( FALSE );
}
}
@@ -45,7 +50,8 @@ void stringContainer::addString(Uint8 _harm,
const float _string_loss,
const float _detune,
const Uint8 _oversample,
const bool _state )
const bool _state,
const Uint8 _id )
{
float harm;
switch( _harm )
@@ -92,4 +98,5 @@ void stringContainer::addString(Uint8 _harm,
_string_loss,
_detune,
_state ) );
m_exists[_id] = TRUE;
}