## MMPM/2 Device Driver Reference

[prev][next][parent][TOC]

### Songs Example

The following is an example of how to specify RCDATA 19 parameters to ask a user what song to play:

    RCDATA 19
    BEGIN
       // Prompts for the User
       "1",                        /* Number of prompts to ask user (2 chars)    */
                                   /* (max 10 prompts).                          */
       // Prompt 1
       "Song to play on startup?", /* Title of prompt (max 50 chars).            */
       "3",                        /* Number of valid values (2 chars).          */
       "Happy Birthday"            /* Valid values  (20 chars each).             */
       "Beethoven's Fifth"
       "Joy to the World"

       "birthday.wav"              /* Corresponding CONFIG.SYS values            */
       "beet_5.wav"                /* (20 chars each)                            */
       "joyworld.wav"

       "2",                        /* Default value - Index into valid values    */
                                   /* (2 chars)                                  */

    END