Version 4.4.1

This commit is contained in:
Gary Scavone
2013-09-29 23:12:27 +02:00
committed by Stephen Sinclair
parent eccd8c9981
commit b6a2202011
16 changed files with 117 additions and 37 deletions

View File

@@ -165,7 +165,7 @@ void RtWvOut :: tick( const StkFloat sample )
writeIndex_ = 0;
}
void RtWvOut :: tick( StkFrames& frames )
void RtWvOut :: tick( const StkFrames& frames )
{
#if defined(_STK_DEBUG_)
if ( data_.channels() != frames.channels() ) {
@@ -195,7 +195,8 @@ void RtWvOut :: tick( StkFrames& frames )
nFrames = frames.frames() - framesWritten;
bytes = nFrames * nChannels * sizeof( StkFloat );
StkFloat *samples = &data_[writeIndex_ * nChannels];
memcpy( samples, &frames[framesWritten * nChannels], bytes );
StkFrames *ins = (StkFrames *) &frames;
memcpy( samples, &(*ins)[framesWritten * nChannels], bytes );
for ( unsigned int i=0; i<nFrames * nChannels; i++ ) clipTest( *samples++ );
writeIndex_ += nFrames;