Skip to content

Commit

Permalink
Fixed some MSVC warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jules committed Jul 2, 2013
1 parent 0b5fd38 commit 94a81e0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 94a81e0

Please sign in to comment.