1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-22 01:34:21 +00:00

Fixed some MSVC warnings.

This commit is contained in:
jules 2013-07-02 17:30:02 +01:00
parent 0b5fd389c0
commit 94a81e0d91

View file

@ -60,17 +60,17 @@ void AudioFormatReaderSource::getNextAudioBlock (const AudioSourceChannelInfo& i
if (newEnd > newStart)
{
reader->read (info.buffer, info.startSample,
newEnd - newStart, newStart, true, true);
(int) (newEnd - newStart), newStart, true, true);
}
else
{
const int64 endSamps = reader->lengthInSamples - newStart;
const int endSamps = (int) (reader->lengthInSamples - newStart);
reader->read (info.buffer, info.startSample,
endSamps, newStart, true, true);
reader->read (info.buffer, info.startSample + endSamps,
newEnd, 0, true, true);
(int) newEnd, 0, true, true);
}
nextPlayPos = newEnd;