Tiny Zelda Game sample project

In this section you can download an HB++ sample project that illustrates the use of my MIDS music player. To run the application properly you will have to install some MIDS music databases, I've converted some from the game "The Legend Of Zelda" (property of Nintendo™) found on the Web and that are linked bellow.

Tiny Game sample project

Available downloads:

This project does not use all player functionnalities (such as time seeking, etc.), I've created this project to see the impact of music playback on the execution time of an application using a lot of resources and graphic animations.

The MidiPlayer class encapsulates some features that are note used in this project. Such features have been disabled at compile-time, this can be performed by using a defined conditional compilation constant (setting it to FALSE):

Note that because the MIDS music Player uses ARM native code for music callback routine, it cannot run on the PalmOS® Simulator. Thus you will have to run your application on real device for debugging.

The MIDS music player uses a look-up table that contains interpolation coefficients. Such table is provided as binary file but it also can be generated by the MIDS converter software (main menu > tools). You can use such a predefined binary file (in this case, don't forget to include it as binary resource in your HB++ project) or you can use a class method that creates and fills the table at run-time.

The conditionnally compiled code:

For more details, take a look at the project source code and the HB++ documentation.