1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

MemoryMappedAudioFormatReader fix. Removed a couple of warnings.

This commit is contained in:
jules 2013-02-26 13:02:22 +00:00
parent 3115c91689
commit 242a461644
3 changed files with 3 additions and 8 deletions

View file

@ -409,7 +409,7 @@ bool MemoryMappedAudioFormatReader::mapSectionOfFile (const Range<int64>& sample
if (map->getData() == nullptr)
map = nullptr;
else
mappedSection = Range<int64> (jmax ((int64) 0, filePosToSample (map->getRange().getStart())),
mappedSection = Range<int64> (jmax ((int64) 0, filePosToSample (map->getRange().getStart() + (bytesPerFrame - 1))),
jmin (lengthInSamples, filePosToSample (map->getRange().getEnd())));
}

View file

@ -96,9 +96,6 @@ public:
id delegate;
private:
CFRunLoopRef runLoop;
CFRunLoopSourceRef runLoopSource;
//==============================================================================
struct AppDelegateClass : public ObjCClass <NSObject>
{