Is it possible to play a MIDI from a resource file directly thru memory, or am I forced to extract it to disk first?

Thanks.