Example Project
The example project is called CDPlayer and can be found in {EM}/example/cdplayer. The simplest way to work your way into the CD-Rom Subsystem is to work your way through this example.
Overview
When you have opened this example you will find two main classes inside the em_cdplayer cluster. The two classes are: CDPLAYER and CDPLAYER_SCENE. Here is a little overview about those two classes:
Class CDPLAYER: Root class where the application, including all needed subsystems, are initialized.
Class CDPLAYER_SCENE: Main scene for CD Player. It is build with EiffelMedia Widgets and it is well commented.
Remarks: This example has a little strange behaviour when you change a CD. The status label will show "No CD in Drive" for about 20 seconds after you have inserted a CD. This is due to delays within SDL and your Operation System and Hardware (closing tray, Starting disk, Reading Meta Data, ...)