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:
parent
00b388fbf3
commit
a110611dd8
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue