1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-01 03:10:06 +00:00

MemoryMappedAudioFormatReader fix.

This commit is contained in:
jules 2013-09-17 15:06:48 +01:00
parent 00b388fbf3
commit a110611dd8

View file

@ -420,7 +420,7 @@ static int memoryReadDummyVariable; // used to force the compiler not to optimis
void MemoryMappedAudioFormatReader::touchSample (int64 sample) const noexcept
{
if (map != nullptr && mappedSection.contains (sample))
memoryReadDummyVariable += *(int*) sampleToPointer (sample);
memoryReadDummyVariable += *(char*) sampleToPointer (sample);
else
jassertfalse; // you must make sure that the window contains all the samples you're going to attempt to read.
}