1
0
Fork 0
forked from len0rd/rockbox

yet more code cleanup, quick snapshot feature,sound should no longer crash,light optimizations

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11041 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Anton Romanov 2006-09-25 09:44:10 +00:00
parent 52f4c4c82b
commit ec2a5cce1a
21 changed files with 125 additions and 2033 deletions

View file

@ -62,8 +62,8 @@ static unsigned char *gbuf;
static unsigned int gbuf_size = 0;
#endif
long video_frames = 0;
long start_time = 0;
long video_frames IBSS_ATTR = 0 ;
long start_time IBSS_ATTR = 0;
enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
{
@ -73,7 +73,6 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
rb->pcm_play_stop();
#endif
rb->splash(HZ, true, "Welcome to ZXBox");
sp_init();
#ifdef USE_IRAM
/* We need to stop audio playback in order to use IRAM */
@ -83,6 +82,8 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
rb->memset(iedata, 0, iend - iedata);
#endif
sp_init();
#ifdef USE_GRAY
/* get the remainder of the plugin buffer */
gbuf = (unsigned char *) rb->plugin_get_buffer(&gbuf_size);
@ -101,8 +102,17 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
#endif
start_time = *rb->current_tick;
#ifdef RB_PROFILE
rb->profile_thread();
#endif
start_spectemu(parameter);
#ifdef RB_PROFILE
rb->profstop();
#endif
#if defined(HAVE_ADJUSTABLE_CPU_FREQ)
rb->cpu_boost(false);
#endif
@ -269,25 +279,3 @@ void press_key(int c){
process_keys();
}
void spkey_textmode(void)
{
}
void spkey_screenmode(void)
{
}
void spscr_refresh_colors(void)
{
}
void resize_spect_scr(int s)
{
/* just to disable warning */
(void)s;
}
int display_keyboard(void)
{
return 0;
}