MCPcopy Create free account
hub / github.com/TASEmulators/fceux / Sync

Function Sync

src/boards/vrc7.cpp:97–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95// VRC7 Sound
96
97static void Sync(void) {
98 uint8 i;
99 setprg8r(0x10, 0x6000, 0);
100 setprg8(0x8000, preg[0]);
101 setprg8(0xA000, preg[1]);
102 setprg8(0xC000, preg[2]);
103 setprg8(0xE000, ~0);
104 for (i = 0; i < 8; i++)
105 setchr1(i << 10, creg[i]);
106 switch (mirr & 3) {
107 case 0: setmirror(MI_V); break;
108 case 1: setmirror(MI_H); break;
109 case 2: setmirror(MI_0); break;
110 case 3: setmirror(MI_1); break;
111 }
112}
113
114static DECLFW(VRC7SW) {
115 if (FSettings.SndRate) {

Callers 3

DECLFWFunction · 0.70
VRC7PowerFunction · 0.70
StateRestoreFunction · 0.70

Calls 4

setprg8rFunction · 0.85
setprg8Function · 0.85
setchr1Function · 0.85
setmirrorFunction · 0.85

Tested by

no test coverage detected