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

Function MxActivateChannel

src/mixer.cpp:222–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220
221
222void MxActivateChannel(MixerChannel *mc)
223{
224 uint8_t channel_index = mc - _channels;
225 _stop_channels.fetch_and(~(1U << channel_index), std::memory_order_release);
226 _active_channels.fetch_or((1U << channel_index), std::memory_order_release);
227}
228
229/**
230 * Set source of PCM music

Callers 1

StartSoundFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected