1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-09 04:30:09 +00:00
This commit is contained in:
jules 2008-01-03 21:27:12 +00:00
parent 5ff699eee1
commit f4a4404e87
9 changed files with 33 additions and 25 deletions

View file

@ -316,7 +316,7 @@ void AudioSampleBuffer::addFrom (const int destChannel,
int numSamples,
const float gain) throw()
{
jassert (&source != this);
jassert (&source != this || sourceChannel != destChannel);
jassert (((unsigned int) destChannel) < (unsigned int) numChannels);
jassert (destStartSample >= 0 && destStartSample + numSamples <= size);
jassert (((unsigned int) sourceChannel) < (unsigned int) source.numChannels);
@ -409,7 +409,7 @@ void AudioSampleBuffer::copyFrom (const int destChannel,
const int sourceStartSample,
int numSamples) throw()
{
jassert (&source != this);
jassert (&source != this || sourceChannel != destChannel);
jassert (((unsigned int) destChannel) < (unsigned int) numChannels);
jassert (destStartSample >= 0 && destStartSample + numSamples <= size);
jassert (((unsigned int) sourceChannel) < (unsigned int) source.numChannels);