MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / SetLoopCount

Method SetLoopCount

stream_audio/streamaudio.cpp:320–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318// sets flags for playback (STRM_OPNF_XXX)
319void AudioStream::SetFlags(int flags) { m_flags = flags; }
320void AudioStream::SetLoopCount(int loop_count) {
321 // if loop_count = 0, then m_loopcount= -1, infinite;
322 // if loop_count = 1, then m_loopcount=0, no looping, etc.
323 m_loopcount = loop_count - 1;
324}
325int AudioStream::GetLoopCount() const {
326 // if loop_count = 0, then m_loopcount= -1, infinite;
327 // if loop_count = 1, then m_loopcount=0, no looping, etc.

Callers 2

ProcessMethod · 0.80
ExecScriptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected