MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / Play

Method Play

Source/Sample.cpp:190–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void Sample::Play(double startTime, float rate /*=1*/, int offset /*=0*/, int stopPoint /*=-1*/)
191{
192 mPlayMutex.lock();
193 mStartTime = startTime;
194 mOffset = offset;
195 mRate = rate;
196 if (stopPoint != -1)
197 SetStopPoint(stopPoint);
198 else
199 ClearStopPoint();
200 mPlayMutex.unlock();
201}
202
203bool Sample::ConsumeData(double time, ChannelBuffer* out, int size, bool replace)
204{

Callers 4

PlayNoteMethod · 0.45
PlayNoteMethod · 0.45
ButtonClickedMethod · 0.45
PlayNoteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected