1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added better constructors for AudioSourceChannelInfo.

This commit is contained in:
jules 2012-04-28 11:37:05 +01:00
parent 79381ced5d
commit 4f590f036d
10 changed files with 36 additions and 34 deletions

View file

@ -252,11 +252,7 @@ void BufferingAudioSource::readBufferSection (const int64 start, const int lengt
if (source->getNextReadPosition() != start)
source->setNextReadPosition (start);
AudioSourceChannelInfo info;
info.buffer = &buffer;
info.startSample = bufferOffset;
info.numSamples = length;
AudioSourceChannelInfo info (&buffer, bufferOffset, length);
source->getNextAudioBlock (info);
}