int hdmi_test(struct test_Parameters *test_para) { test_words_show("HDMI test",Bcolor); /*if(init_tvout_pic() < 0)*/ /*{*/ /*draw_decision_pic(FAIL);*/ /*return False;*/ /*}*/ #ifdef H350 if(audio_init(SAMPLINGRATE, O_WRONLY) < 0) return False; if(init_fb(test_para->hdmi_info.buffer_size) < 0) { draw_decision_pic(FAIL); return False; } if (test_hdmi_loop(test_para) != True) { draw_decision_pic(FAIL); return False; } deinit_audio(); deinit_fb(test_para->hdmi_info.buffer_size); #endif /*deinit_tvout_pic();*/ return decision_loop(); }
void JE_tyrianHalt( JE_byte code ) { deinit_audio(); deinit_video(); deinit_joysticks(); /* TODO: NETWORK */ free_main_shape_tables(); free_sprite2s(&shapes6); for (int i = 0; i < SAMPLE_COUNT; i++) { free(digiFx[i]); } if (code != 9) { /* TODO? JE_drawANSI("exitmsg.bin"); JE_gotoXY(1,22);*/ JE_saveConfiguration(); } /* endkeyboard; */ if (code == 9) { /* OutputString('call=file0002.EXE' + #0'); TODO? */ } if (code == 5) { code = 0; } if (trentWin) { printf("\n" "\n" "\n" "\n" "Sleep well, Trent, you deserve the rest.\n" "You now have permission to borrow my ship on your next mission.\n" "\n" "Also, you might want to try out the YESXMAS parameter.\n" " Type: File0001 YESXMAS\n" "\n" "You'll need the 2.1 patch, though!\n" "\n"); } SDL_Quit(); exit(code); }
int avout_test(struct test_Parameters *test_para) { int avout_loop = 1; extern unsigned char *fb; int i = 0; test_words_show("Av out test",Bcolor); #ifdef H350 set_volume(100); /*if(init_tvout_pic() < 0)*/ /*{*/ /*draw_decision_pic(FAIL);*/ /*return False;*/ /*}*/ if(audio_init(SAMPLINGRATE, O_WRONLY) < 0) return False; if(init_fb(test_para->avout_info.buffer_size) < 0) { draw_decision_pic(FAIL); return False; } if(init_av_dev() < 0) { draw_decision_pic(FAIL); return False; } test_words_show("Please plug in AV cable!",Bcolor); while(avout_loop) { if(get_av_out_mode() == SET_ON) { /*if(False == set_lcd_control_mode(AVOUT_PAL_MODE))*/ /*return False;*/ avout_switch(SET_ON); for(i = 0; i < 3; i++) { draw_color_bar((unsigned int *)fb,i,test_para->avout_info.width,test_para->avout_info.height); sleep(2); } audio_sound_out(TEST_SOUND); /*sdl_draw_a_pic(test_back_show,NULL,NULL);*/ /*sdl_flip_screen();*/ /*set_lcd_control_mode(LCD_MODE);*/ avout_switch(SET_OFF); avout_loop = 0; } /*if(press_B_to_quit() < 0)*/ /*{*/ /*deinit_av_dev();*/ /*deinit_tvout_pic();*/ /*draw_decision_pic(FAIL);*/ /*return False;*/ /*}*/ usleep(200*1000); } deinit_audio(); deinit_av_dev(); deinit_fb(test_para->avout_info.buffer_size); /*deinit_tvout_pic();*/ #endif return decision_loop(); }