mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-09 04:30:09 +00:00
This commit is contained in:
parent
5ff699eee1
commit
f4a4404e87
9 changed files with 33 additions and 25 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue