Geromatic / Midi-Unreal

Midi for Unreal Engine
130 stars 31 forks source link

In C++ example code FBufferReader is not a istream #21

Closed AlexanderBaruta closed 4 years ago

AlexanderBaruta commented 5 years ago

I'm on UE 4.22.3. I'm trying to read in a Midi from file using the example code as a starting point and using the provided example code:

FString path; TArray data; bool result = FFileHelper::LoadFileToArray(data, path.GetCharArray().GetData()); FBufferReader reader((uint8*)data.GetData(), data.Num(), false); MidiFile midi(reader);

fails to compile since FBufferReader is not a istream and MidiFile only accepts istreams in the file constructor.

AlexanderBaruta commented 5 years ago

This is part of a larger issue where MidiFile objects are not directly accessible to the user's C++ code because the MidiFile objects are not opened to the API so any attempt to use them directly will result in a Unresolved External error

Geromatic commented 4 years ago

updated readme file