Mercurial > repos > blastem
annotate cdd_fader.h @ 2166:3a6680e9204a
xcftools is no longer packaged by Debian/Ubuntu so switched to imagemagick
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 23 Jul 2022 10:54:07 -0700 |
parents | 4fbe1e7c4a73 |
children | 5a21bc0ec583 |
rev | line source |
---|---|
2080 | 1 #ifndef CDD_FADER_H_ |
2 #define CDD_FADER_H_ | |
3 | |
4 #include "render_audio.h" | |
5 | |
6 typedef struct { | |
7 audio_source *audio; | |
8 uint16_t cur_attenuation; | |
9 uint16_t dst_attenuation; | |
10 uint16_t attenuation_step; | |
11 uint8_t flags; | |
12 uint8_t bytes[4]; | |
13 uint8_t byte_counter; | |
14 } cdd_fader; | |
15 | |
16 void cdd_fader_init(cdd_fader *fader); | |
2164
4fbe1e7c4a73
Don't leak all Sega CD resources when freeing a Genesis instance
Michael Pavone <pavone@retrodev.com>
parents:
2080
diff
changeset
|
17 void cdd_fader_deinit(cdd_fader *fader); |
2080 | 18 void cdd_fader_attenuation_write(cdd_fader *fader, uint16_t attenuation); |
19 void cdd_fader_data(cdd_fader *fader, uint8_t byte); | |
20 void cdd_fader_pause(cdd_fader *fader); | |
21 | |
22 #endif //CDD_FADER_H_ |