MCPcopy Create free account
hub / github.com/doldecomp/mkdd / updateChannel

Method updateChannel

libs/JSystem/JAudio/System/JASTrack.cpp:671–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

669}
670
671void JASTrack::updateChannel(JASChannel *ch, JASDsp::TChannel *dspCh) {
672 ch->setVibrate(mVibDepth, mVibPitch);
673 ch->setTremolo(mTremDepth, mTremPitch);
674 if (mFilterMode & 0x20) {
675 dspCh->setIIRFilterParam(mIIR);
676 }
677 if (mFilterMode & 0x1f) {
678 dspCh->setFIR8FilterParam(mFIR);
679 }
680 dspCh->setFilterMode(mFilterMode);
681 dspCh->setDistFilter(mMove.params.distFilter.mValue * 32767.0f);
682}
683
684void JASTrack::channelUpdateCallback(u32 p1, JASChannel *ch, JASDsp::TChannel *dspCh, void *arg) {
685 TChannelMgr *channel_mgr = static_cast<TChannelMgr*>(arg);

Callers 1

channelUpdateCallbackMethod · 0.45

Calls 6

setVibrateMethod · 0.80
setTremoloMethod · 0.80
setIIRFilterParamMethod · 0.80
setFIR8FilterParamMethod · 0.80
setFilterModeMethod · 0.80
setDistFilterMethod · 0.80

Tested by

no test coverage detected