mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
Merge pull request #36 from Ahbee/feature-setChannel
added StkFrames::setChannel
This commit is contained in:
@@ -381,6 +381,14 @@ public:
|
||||
*/
|
||||
StkFrames& copyChannel(unsigned int channel,StkFrames& destinationFrames, unsigned int destinationChannel) const;
|
||||
|
||||
//! Sets a single channel
|
||||
/*!
|
||||
Copies the \c sourceChannel of \c sourceFrames into the \c channel of self.
|
||||
SourceFrames.frames() must be equal to frames().
|
||||
No range checking is performed unless _STK_DEBUG_ is defined.
|
||||
*/
|
||||
void setChannel(unsigned int channel,const StkFrames &sourceFrames,unsigned int sourceChannel);
|
||||
|
||||
//! Return the number of channels represented by the data.
|
||||
unsigned int channels( void ) const { return nChannels_; };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user