comparison mediaplayer.h @ 2707:a64c0e1ed6ac

Implement speed control and reset for media player. Fix other bindings that could cause it to crash
author Michael Pavone <pavone@retrodev.com>
date Sun, 06 Jul 2025 20:43:37 -0700
parents fb8f49b0aece
children
comparison
equal deleted inserted replaced
2706:0bd48217941a 2707:a64c0e1ed6ac
13 typedef struct chip_info chip_info; 13 typedef struct chip_info chip_info;
14 typedef void (*chip_run_fun)(void *context, uint32_t cycle); 14 typedef void (*chip_run_fun)(void *context, uint32_t cycle);
15 typedef void (*chip_scope_fun)(chip_info *chip, oscilloscope *scope); 15 typedef void (*chip_scope_fun)(chip_info *chip, oscilloscope *scope);
16 typedef void (*chip_noarg_fun)(void *context); 16 typedef void (*chip_noarg_fun)(void *context);
17 typedef void (*chip_adjust_fun)(chip_info *chip); 17 typedef void (*chip_adjust_fun)(chip_info *chip);
18 typedef void (*chip_clock_fun)(chip_info *chip, uint32_t percent);
18 typedef void (*chip_stream_fun)(chip_info *chip, uint8_t port, uint8_t command, uint16_t sample); 19 typedef void (*chip_stream_fun)(chip_info *chip, uint8_t port, uint8_t command, uint16_t sample);
19 struct chip_info { 20 struct chip_info {
20 void *context; 21 void *context;
21 chip_run_fun run; 22 chip_run_fun run;
22 chip_adjust_fun adjust; 23 chip_adjust_fun adjust;
24 chip_clock_fun adjust_clock;
23 chip_scope_fun scope; 25 chip_scope_fun scope;
24 chip_noarg_fun no_scope; 26 chip_noarg_fun no_scope;
25 chip_noarg_fun free; 27 chip_noarg_fun free;
26 chip_stream_fun stream; 28 chip_stream_fun stream;
27 data_block *blocks; 29 data_block *blocks;