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:
parent
79381ced5d
commit
4f590f036d
10 changed files with 36 additions and 34 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue