Skip to content

Commit

Permalink
fixed typos in getChannel setChannel()
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahbee committed Mar 24, 2015
1 parent 35f66c8 commit 58fc744
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Stk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,17 +322,17 @@ StkFrames& StkFrames::getChannel(unsigned int sourceChannel,StkFrames& destinati
#if defined(_STK_DEBUG_)
if (sourceChannel > channels() - 1) {
std::ostringstream error;
error << "StkFrames::copyChannel invalid sourceChannel (" << sourceChannel << ")";
error << "StkFrames::getChannel invalid sourceChannel (" << sourceChannel << ")";
Stk::handleError( error.str(), StkError::FUNCTION_ARGUMENT);
}
if (destinationChannel > destinationFrames.channels() - 1) {
std::ostringstream error;
error << "StkFrames::copyChannel invalid destinationChannel (" << destinationChannel << ")";
error << "StkFrames::getChannel invalid destinationChannel (" << destinationChannel << ")";
Stk::handleError( error.str(), StkError::FUNCTION_ARGUMENT );
}
if (destinationFrames.frames() < frames()) {
std::ostringstream error;
error << "StkFrames::copyChannel destination.frames() < frames()";
error << "StkFrames::getChannel destination.frames() < frames()";
Stk::handleError( error.str(), StkError::MEMORY_ACCESS);
}
#endif
Expand All @@ -358,9 +358,9 @@ void StkFrames::setChannel(unsigned int destinationChannel, const stk::StkFrames
error << "StkFrames::setChannel invalid channel (" << destinationChannel << ")";
Stk::handleError( error.str(), StkError::FUNCTION_ARGUMENT );
}
if (f.frames() != frames()) {
if (sourceFrames.frames() != frames()) {
std::ostringstream error;
error << "StkFrames::setChannel f.frames() != frames();
error << "StkFrames::setChannel sourceFrames.frames() != frames()";
Stk::handleError( error.str(), StkError::MEMORY_ACCESS);
}
#endif
Expand Down

0 comments on commit 58fc744

Please sign in to comment.