Mercurial > repos > blastem
view cdd_fader.h @ 2237:f82c090c1e89
Implement MMAP_ONLY_ODD/EVEN in combination with MMAP_PTR_IDX. Fixes games that have SRAM when a system with TMSS is selected
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 17 Sep 2022 15:38:40 -0700 |
parents | 4fbe1e7c4a73 |
children | 5a21bc0ec583 |
line wrap: on
line source
#ifndef CDD_FADER_H_ #define CDD_FADER_H_ #include "render_audio.h" typedef struct { audio_source *audio; uint16_t cur_attenuation; uint16_t dst_attenuation; uint16_t attenuation_step; uint8_t flags; uint8_t bytes[4]; uint8_t byte_counter; } cdd_fader; void cdd_fader_init(cdd_fader *fader); void cdd_fader_deinit(cdd_fader *fader); void cdd_fader_attenuation_write(cdd_fader *fader, uint16_t attenuation); void cdd_fader_data(cdd_fader *fader, uint8_t byte); void cdd_fader_pause(cdd_fader *fader); #endif //CDD_FADER_H_