comparison mediaplayer.h @ 2296:789802d99629

Add basic FLAC decoder and add FLAC playback support to the media player
author Michael Pavone <pavone@retrodev.com>
date Sun, 19 Feb 2023 21:12:46 -0800
parents c4980d89614b
children 97f164d1f0f6
comparison
equal deleted inserted replaced
2295:eb45ad9d8a3f 2296:789802d99629
3 3
4 #include <stdint.h> 4 #include <stdint.h>
5 #include "system.h" 5 #include "system.h"
6 #include "vgm.h" 6 #include "vgm.h"
7 #include "wave.h" 7 #include "wave.h"
8 #include "flac.h"
8 #include "render_audio.h" 9 #include "render_audio.h"
9 10
10 typedef struct chip_info chip_info; 11 typedef struct chip_info chip_info;
11 typedef void (*chip_run_fun)(void *context, uint32_t cycle); 12 typedef void (*chip_run_fun)(void *context, uint32_t cycle);
12 typedef void (*chip_adjust_fun)(chip_info *chip); 13 typedef void (*chip_adjust_fun)(chip_info *chip);
26 system_media *media; 27 system_media *media;
27 vgm_header *vgm; 28 vgm_header *vgm;
28 vgm_extended_header *vgm_ext; 29 vgm_extended_header *vgm_ext;
29 data_block *ym_seek_block; 30 data_block *ym_seek_block;
30 wave_header *wave; 31 wave_header *wave;
32 flac_file *flac;
31 audio_source *audio; 33 audio_source *audio;
32 chip_info *chips; 34 chip_info *chips;
33 uint32_t num_chips; 35 uint32_t num_chips;
34 uint32_t current_offset; 36 uint32_t current_offset;
35 uint32_t playback_time; 37 uint32_t playback_time;