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