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

Function FrameSoundUpdate

src/sound.cpp:484–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482}
483
484void FrameSoundUpdate(void)
485{
486 // Linear counter: Bit 0-6 of $4008
487 // Length counter: Bit 4-7 of $4003, $4007, $400b, $400f
488
489 if(!fcnt && !(IRQFrameMode&0x3))
490 {
491 SIRQStat|=0x40;
492 X6502_IRQBegin(FCEU_IQFCOUNT);
493 }
494
495 if(fcnt==3)
496 {
497 if(IRQFrameMode&0x2)
498 fhcnt+=fhinc;
499 }
500 FrameSoundStuff(fcnt);
501 fcnt=(fcnt+1)&3;
502}
503
504
505static INLINE void tester(void)

Callers 2

FCEU_SoundCPUHookFunction · 0.85
DECLFWFunction · 0.85

Calls 2

X6502_IRQBeginFunction · 0.85
FrameSoundStuffFunction · 0.85

Tested by

no test coverage detected