aboutsummaryrefslogtreecommitdiff
path: root/plat.h
diff options
context:
space:
mode:
authorneonloop2021-08-04 15:09:12 +0000
committerneonloop2021-08-04 15:09:12 +0000
commit99632f66e74fc57c463072be312d634aeb67bc61 (patch)
treee4ccaf52b93d04c69865d82556e2ce4cd3a6c599 /plat.h
downloadpicoarch-99632f66e74fc57c463072be312d634aeb67bc61.tar.gz
picoarch-99632f66e74fc57c463072be312d634aeb67bc61.tar.bz2
picoarch-99632f66e74fc57c463072be312d634aeb67bc61.zip
Initial commit
Diffstat (limited to 'plat.h')
-rw-r--r--plat.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/plat.h b/plat.h
new file mode 100644
index 0000000..6b84f1f
--- /dev/null
+++ b/plat.h
@@ -0,0 +1,28 @@
+#ifndef __PLAT_H__
+#define __PLAT_H__
+
+#include "libpicofe/plat.h"
+
+struct audio_frame {
+ int16_t left;
+ int16_t right;
+};
+
+#define HUD_LEN 39
+
+int plat_init(void);
+void plat_finish(void);
+void plat_minimize(void);
+void *plat_prepare_screenshot(int *w, int *h, int *bpp);
+
+void plat_video_open(void);
+void plat_video_set_msg(const char *new_msg);
+void plat_video_process(const void *data, unsigned width, unsigned height, size_t pitch);
+void plat_video_flip(void);
+void plat_video_close(void);
+
+float plat_sound_capacity(void);
+void plat_sound_write(const struct audio_frame *data, int frames);
+void plat_sound_resize_buffer(void);
+
+#endif /* __PLAT_H__ */