Commit 53d1fbaf authored by Sloan Gardner's avatar Sloan Gardner
Browse files

Add reset support and remove audio stuttering

parent 7fc3fb00
......@@ -146,7 +146,7 @@ void retro_deinit(void)
// Reset gme
void retro_reset(void)
{
start_track(0);
}
// Run a single frame
......@@ -180,7 +180,7 @@ void retro_run(void)
draw_ui();
video_cb(framebuffer->pixel_data, framebuffer->width, framebuffer->height, framebuffer->bytes_per_pixel * framebuffer->width);
//audio handling
audio_batch_cb(play(),1470);
audio_batch_cb(play(),735);
}
// File Loading
......
......@@ -86,7 +86,7 @@ short *play(void)
is_playing_ = false;
}
else
gme_play( emu, 2048, audio_buffer );
gme_play( emu, 1470, audio_buffer );
}
else
memset(audio_buffer,0,8192 * sizeof(short));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment