mirror of
https://github.com/thestk/stk
synced 2026-01-16 14:21:53 +00:00
Version 4.4.1
This commit is contained in:
committed by
Stephen Sinclair
parent
eccd8c9981
commit
b6a2202011
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user