added StkFrames::copyChannel

This commit is contained in:
Abhi
2014-09-16 17:53:18 -04:00
parent d1acfb07ed
commit f905623d10
2 changed files with 36 additions and 0 deletions

View File

@@ -373,6 +373,14 @@ public:
*/
void resize( size_t nFrames, unsigned int nChannels, StkFloat value );
//! Copies a single channel
/*!
Copies the \c sourceChannel into \c destination's \c destinationChannel. \c destinationChannel must be between 0 and destination.channels() - 1 and
sourceChannel must be between 0 and channels() - 1. destination.frames() must be >= frames().
No range checking is performed unless _STK_DEBUG_ is defined.
*/
StkFrames& copyChannel(unsigned int sourceChannel,StkFrames& destinationFrames, unsigned int destinationChannel) const;
//! Return the number of channels represented by the data.
unsigned int channels( void ) const { return nChannels_; };