1
0
mirror of https://github.com/sjlongland/atinysynth.git synced 2025-09-13 10:03:15 +10:00

synth: Make enable/mute bits volatile.

Otherwise the optimiser doesn't bother to re-check them.
This commit is contained in:
Stuart Longland 2017-04-09 10:17:09 +10:00
parent fb59c52b71
commit 7214ae7d78
Signed by: stuartl
GPG Key ID: F954BBBB7948D546

View File

@ -55,14 +55,14 @@ struct poly_synth_t {
* Note no bounds checking is done, if you have only defined 4
* channels, then only set bits 0-3, don't set bits 4 onwards here.
*/
uintptr_t enable;
volatile uintptr_t enable;
/*!
* Bit-field muting given voices. This allows for selective adding
* of voices to the overall output. If a field is 1, then that voice
* channel is not included. (Note, disabled channels are *also*
* not included.)
*/
uintptr_t mute;
volatile uintptr_t mute;
};
/*!