comparison cdd_fader.c @ 2081:cfd53c94fffb

Initial stab at RF5C164 emulation
author Michael Pavone <pavone@retrodev.com>
date Thu, 03 Feb 2022 23:15:42 -0800
parents bafb757e1cd2
children 4fbe1e7c4a73
comparison
equal deleted inserted replaced
2080:bafb757e1cd2 2081:cfd53c94fffb
1 #include "cdd_fader.h" 1 #include "cdd_fader.h"
2 #include <stdio.h> 2 #include <stdio.h>
3 3
4 void cdd_fader_init(cdd_fader *fader) 4 void cdd_fader_init(cdd_fader *fader)
5 { 5 {
6 fader->audio = render_audio_source(16934400, 384, 2); 6 fader->audio = render_audio_source("CDDA", 16934400, 384, 2);
7 fader->cur_attenuation = 0x4000; 7 fader->cur_attenuation = 0x4000;
8 fader->dst_attenuation = 0x4000; 8 fader->dst_attenuation = 0x4000;
9 fader->attenuation_step = 0; 9 fader->attenuation_step = 0;
10 } 10 }
11 void cdd_fader_attenuation_write(cdd_fader *fader, uint16_t attenuation) 11 void cdd_fader_attenuation_write(cdd_fader *fader, uint16_t attenuation)