Mercurial > repos > blastem
comparison cdd_fader.h @ 2080:bafb757e1cd2
Implement CD audio
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 02 Feb 2022 01:10:07 -0800 |
parents | |
children | 4fbe1e7c4a73 |
comparison
equal
deleted
inserted
replaced
2079:5a2b759f6b2d | 2080:bafb757e1cd2 |
---|---|
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); | |
17 void cdd_fader_attenuation_write(cdd_fader *fader, uint16_t attenuation); | |
18 void cdd_fader_data(cdd_fader *fader, uint8_t byte); | |
19 void cdd_fader_pause(cdd_fader *fader); | |
20 | |
21 #endif //CDD_FADER_H_ |