MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / GetDPCMState

Method GetDPCMState

Source/SoundGen.cpp:845–851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843}
844
845stDPCMState CSoundGen::GetDPCMState() const
846{
847 if (m_pAPU) // // //
848 if (auto *p2A03 = dynamic_cast<C2A03 *>(m_pAPU->GetSoundChip(sound_chip_t::APU))) // // //
849 return {p2A03->GetSamplePos(), p2A03->GetDeltaCounter()};
850 return { };
851}
852
853int CSoundGen::GetChannelNote(stChannelID chan) const { // // //
854 return m_pSoundDriver ? m_pSoundDriver->GetChannelNote(chan) : -1;

Callers 2

OnTimerMethod · 0.80
DrawMethod · 0.80

Calls 3

GetSoundChipMethod · 0.45
GetSamplePosMethod · 0.45
GetDeltaCounterMethod · 0.45

Tested by

no test coverage detected