Mercurial > repos > blastem
comparison mediaplayer.h @ 2375:02c04196c2da
Fix mediaplayer play/pause handling
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 17 Nov 2023 00:30:46 -0800 |
parents | 97f164d1f0f6 |
children | 1c09f5be285b |
comparison
equal
deleted
inserted
replaced
2374:97f164d1f0f6 | 2375:02c04196c2da |
---|---|
6 #include "vgm.h" | 6 #include "vgm.h" |
7 #include "wave.h" | 7 #include "wave.h" |
8 #include "flac.h" | 8 #include "flac.h" |
9 #include "oscilloscope.h" | 9 #include "oscilloscope.h" |
10 #include "render_audio.h" | 10 #include "render_audio.h" |
11 #include "io.h" | |
11 | 12 |
12 typedef struct chip_info chip_info; | 13 typedef struct chip_info chip_info; |
13 typedef void (*chip_run_fun)(void *context, uint32_t cycle); | 14 typedef void (*chip_run_fun)(void *context, uint32_t cycle); |
14 typedef void (*chip_scope_fun)(chip_info *chip, oscilloscope *scope); | 15 typedef void (*chip_scope_fun)(chip_info *chip, oscilloscope *scope); |
15 typedef void (*chip_noarg_fun)(void *context); | 16 typedef void (*chip_noarg_fun)(void *context); |
46 uint32_t ym_block_offset; | 47 uint32_t ym_block_offset; |
47 uint32_t loop_count; | 48 uint32_t loop_count; |
48 uint8_t state; | 49 uint8_t state; |
49 uint8_t media_type; | 50 uint8_t media_type; |
50 uint8_t should_return; | 51 uint8_t should_return; |
52 uint8_t button_state[NUM_GAMEPAD_BUTTONS]; | |
51 } media_player; | 53 } media_player; |
52 | 54 |
53 media_player *alloc_media_player(system_media *media, uint32_t opts); | 55 media_player *alloc_media_player(system_media *media, uint32_t opts); |
54 | 56 |
55 | 57 |