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

Method play

libs/JSystem/JAudio/System/JASChannel.cpp:64–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64int JASChannel::play() {
65 JASDSPChannel *chan = JASDSPChannel::alloc(JSULoByte(mPriority), dspUpdateCallback, this);
66 if (!chan) {
67 delete this;
68 return 0;
69 }
70
71 mDspCh = chan;
72 chan->start();
73 mStatus = STATUS_PLAYING;
74 return 1;
75}
76
77int JASChannel::playForce() {
78 JASDSPChannel *chan = JASDSPChannel::allocForce(JSULoByte(mPriority), dspUpdateCallback, this);

Callers 2

noteOnMethod · 0.45
noteOnOscMethod · 0.45

Calls 3

allocFunction · 0.85
JSULoByteFunction · 0.85
startMethod · 0.45

Tested by

no test coverage detected