Mercurial > repos > blastem
diff 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 |
line wrap: on
line diff
--- a/mediaplayer.h Sun Jul 06 20:09:32 2025 -0700 +++ b/mediaplayer.h Sun Jul 06 20:43:37 2025 -0700 @@ -15,11 +15,13 @@ typedef void (*chip_scope_fun)(chip_info *chip, oscilloscope *scope); typedef void (*chip_noarg_fun)(void *context); typedef void (*chip_adjust_fun)(chip_info *chip); +typedef void (*chip_clock_fun)(chip_info *chip, uint32_t percent); typedef void (*chip_stream_fun)(chip_info *chip, uint8_t port, uint8_t command, uint16_t sample); struct chip_info { void *context; chip_run_fun run; chip_adjust_fun adjust; + chip_clock_fun adjust_clock; chip_scope_fun scope; chip_noarg_fun no_scope; chip_noarg_fun free;