Merge pull request #49 from sonoro1234/removealert_branch

add removeSampleRateAlert to ADSR and Asymp
This commit is contained in:
garyscavone
2015-12-02 19:47:51 -05:00
3 changed files with 3 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ ADSR :: ADSR( void )
ADSR :: ~ADSR( void )
{
Stk::removeSampleRateAlert( this );
}
void ADSR :: sampleRateChanged( StkFloat newRate, StkFloat oldRate )

View File

@@ -40,6 +40,7 @@ Asymp :: Asymp( void )
Asymp :: ~Asymp( void )
{
Stk::removeSampleRateAlert( this );
}
void Asymp :: sampleRateChanged( StkFloat newRate, StkFloat oldRate )

View File

@@ -131,7 +131,7 @@ void VoicForm :: controlChange( int number, StkFloat value )
{
#if defined(_STK_DEBUG_)
if ( Stk::inRange( value, 0.0, 128.0 ) == false ) {
oStream_ << "Clarinet::controlChange: value (" << value << ") is out of range!";
oStream_ << "VoicForm::controlChange: value (" << value << ") is out of range!";
handleError( StkError::WARNING ); return;
}
#endif