sample/sgdk/src/main.c
void init_menu()
{
	VDP_clearPlane(0, FALSE);
	menu_add_item(ITEM_BGM, "BGM", 1, 0, MDS_command(MDS_CMD_GET_SOUND_CNT, 0));
	menu_add_item(ITEM_VOLUME, "BGM volume", 0, 0, 127);
	menu_add_item(ITEM_TEMPO, "BGM tempo", 0, 0, 511);
	menu_add_item(ITEM_BGMVOL, "Initial BGM vol", 0, 0, 127);
	menu_add_item(ITEM_SEVOL, "Initial SE vol", 0, 0, 127);
	menu_add_item(ITEM_GTEMPO, "Global tempo", 16, 16, 511); //lower values cause higher CPU load
	menu_add_item(ITEM_FTARGET, "Fade target", 20, 0, 127);
	menu_add_item(ITEM_FSPEED, "Fade speed", 5, 0, 7);
	menu_add_item(ITEM_SE1, "SE1", SE_BEEP3, SE_MIN, SE_MAX);
	menu_add_item(ITEM_SE2, "SE2", SE_NOISE1, SE_MIN, SE_MAX);
	menu_add_item(ITEM_SE3, "SE3", SE_EXPLOSION2, SE_MIN, SE_MAX);

	menu_init(ITEM_MAX);
	draw_instructions();

	VDP_drawText("MDSDRV SGDK Test Program", 2, 2);
	VDP_drawText("Version", 2, 22);
	VDP_drawText(MDS_get_version_str(), 10, 22);
	VDP_drawText("Status", 2, 24);
	VDP_drawText("%", 38, 1);
}
/*
 *  Initializes the menu options and draws the static text
 */
Initializes the menu options and draws the static text
Initializes the menu options and draws the static text
void init_menu()
{
	VDP_clearPlane(0, FALSE);
	menu_add_item(ITEM_BGM, "BGM", 1, 0, MDS_command(MDS_CMD_GET_SOUND_CNT, 0));
	menu_add_item(ITEM_VOLUME, "BGM volume", 0, 0, 127);
	menu_add_item(ITEM_TEMPO, "BGM tempo", 0, 0, 511);
	menu_add_item(ITEM_BGMVOL, "Initial BGM vol", 0, 0, 127);
	menu_add_item(ITEM_SEVOL, "Initial SE vol", 0, 0, 127);
	menu_add_item(ITEM_GTEMPO, "Global tempo", 16, 16, 511); 
	menu_add_item(ITEM_FTARGET, "Fade target", 20, 0, 127);
	menu_add_item(ITEM_FSPEED, "Fade speed", 5, 0, 7);
	menu_add_item(ITEM_SE1, "SE1", SE_BEEP3, SE_MIN, SE_MAX);
	menu_add_item(ITEM_SE2, "SE2", SE_NOISE1, SE_MIN, SE_MAX);
	menu_add_item(ITEM_SE3, "SE3", SE_EXPLOSION2, SE_MIN, SE_MAX);
	menu_init(ITEM_MAX);
	draw_instructions();
	VDP_drawText("MDSDRV SGDK Test Program", 2, 2);
	VDP_drawText("Version", 2, 22);
	VDP_drawText(MDS_get_version_str(), 10, 22);
	VDP_drawText("Status", 2, 24);
	VDP_drawText("%", 38, 1);
}
void init_menu ( ) { VDP_clearPlane ( 0 , FALSE ) ; menu_add_item ( ITEM_BGM , " " , 1 , 0 , MDS_command ( MDS_CMD_GET_SOUND_CNT , 0 ) ) ; menu_add_item ( ITEM_VOLUME , " " , 0 , 0 , 127 ) ; menu_add_item ( ITEM_TEMPO , " " , 0 , 0 , 511 ) ; menu_add_item ( ITEM_BGMVOL , " " , 0 , 0 , 127 ) ; menu_add_item ( ITEM_SEVOL , " " , 0 , 0 , 127 ) ; menu_add_item ( ITEM_GTEMPO , " " , 16 , 16 , 511 ) ; menu_add_item ( ITEM_FTARGET , " " , 20 , 0 , 127 ) ; menu_add_item ( ITEM_FSPEED , " " , 5 , 0 , 7 ) ; menu_add_item ( ITEM_SE1 , " " , SE_BEEP3 , SE_MIN , SE_MAX ) ; menu_add_item ( ITEM_SE2 , " " , SE_NOISE1 , SE_MIN , SE_MAX ) ; menu_add_item ( ITEM_SE3 , " " , SE_EXPLOSION2 , SE_MIN , SE_MAX ) ; menu_init ( ITEM_MAX ) ; draw_instructions ( ) ; VDP_drawText ( " " , 2 , 2 ) ; VDP_drawText ( " " , 2 , 22 ) ; VDP_drawText ( MDS_get_version_str ( ) , 10 , 22 ) ; VDP_drawText ( " " , 2 , 24 ) ; VDP_drawText ( " " , 38 , 1 ) ; }
Initializes the menu options and draws the static text
Initializes the menu options and draws the static text
//lower values cause higher CPU load