Play
Stop
The Multimedia Framework APIs are called by the example's CMidiPlayer
class that acts as an engine. This also implements
the various callback interfaces required by the API in order to report
progress and error conditions.
The engine is driven through the example's UI class CMidiPlayingAppUi
. The engine has member pointer of CMidiClientUtility
and has methods for play and stop which in turn calls respective
method of CMidiClientUtility
. The engine also implements
callback functions of the MMidiClientUtilityObserver
interface.
Click on the following link to download the example: MidiPlayer.zip file
Click: browse to view the example code
MMidiClientUtilityObserver CMidiClientUtility
Commands are given in the example through its menu – Play and Stop.