MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / MxCloseAllChannels

Function MxCloseAllChannels

src/mixer.cpp:119–122  ·  view source on GitHub ↗

* Close all mixer channels. * This signals to the mixer that each channel should be closed even if it has not played all remaining samples. * This is safe (and designed) to be called from the main thread. */

Source from the content-addressed store, hash-verified

117 * This is safe (and designed) to be called from the main thread.
118 */
119void MxCloseAllChannels()
120{
121 _stop_channels.fetch_or(~0, std::memory_order_release);
122}
123
124void MxMixSamples(void *buffer, uint samples)
125{

Callers 1

ChangeSoundSetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected