Mercurial > repos > blastem
diff render.h @ 354:15dd6418fe67
Initial PSG support. Mostly works, noise channel is borked though.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 23 May 2013 23:42:42 -0700 |
parents | 13f994c88c34 |
children | 62177cc39049 |
line wrap: on
line diff
--- a/render.h Wed May 22 09:37:02 2013 -0700 +++ b/render.h Thu May 23 23:42:42 2013 -0700 @@ -2,11 +2,15 @@ #define RENDER_SDL_H_ #include "vdp.h" -void render_init(int width, int height, char * title); +#include "psg.h" +void render_init(int width, int height, char * title, uint32_t fps); void render_context(vdp_context * context); void render_wait_quit(vdp_context * context); +void render_wait_audio(psg_context * context); int wait_render_frame(vdp_context * context, int frame_limit); void render_fps(uint32_t fps); +uint32_t render_audio_buffer(); +uint32_t render_sample_rate(); #endif //RENDER_SDL_H_