# How to play MIDI file?

**URL:** <https://qa.fmod.com/t/how-to-play-midi-file/14575>\
**Category:** FMOD Engine\
**Created:** [April 16, 2019, 4:35am UTC](https://qa.fmod.com/t/how-to-play-midi-file/14575 "2019-04-16T04:35:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zzzhhh](https://avatars.discourse-cdn.com/v4/letter/z/65b543/32.png) [@zzzhhh](https://qa.fmod.com/u/zzzhhh)\
**Post date:** [April 16, 2019, 4:35am UTC](https://qa.fmod.com/t/how-to-play-midi-file/14575/1 "2019-04-16T04:35:03Z")

</div>

I tried to load a MIDI file using createSound or createStream but it returns FMOD\_ERR\_PLUGIN\_RESOURCE. I don’t understand what it means. So is there any example code to play MIDI file easily using a single API to load and a single API to play? If you insist a common user take a decade to be an expert before using FMOD to play MIDI file, can you show me a learning path? Thanks.
