aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/midi/base.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-02-04 19:19:43 -0800
committerChris Robinson <[email protected]>2015-02-04 23:39:51 -0800
commit61743a3a0017c567ee62ab50c3da28a5ed2fed8d (patch)
tree8f928cd0b98695c43921a89efd38e2ca141be9a6 /Alc/midi/base.h
parentefb7b11d7f60d7fe6b1c10c21b4790f5a1dcd728 (diff)
Avoid unnecessary uses of ExchangeInt/Ptr
Diffstat (limited to 'Alc/midi/base.h')
-rw-r--r--Alc/midi/base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/midi/base.h b/Alc/midi/base.h
index 157f2399..309e1a55 100644
--- a/Alc/midi/base.h
+++ b/Alc/midi/base.h
@@ -60,7 +60,7 @@ void MidiSynth_Destruct(MidiSynth *self);
ALenum MidiSynth_selectSoundfonts(MidiSynth *self, ALCcontext *context, ALsizei count, const ALuint *ids);
inline void MidiSynth_setGain(MidiSynth *self, ALfloat gain) { self->Gain = gain; }
inline ALfloat MidiSynth_getGain(const MidiSynth *self) { return self->Gain; }
-inline void MidiSynth_setState(MidiSynth *self, ALenum state) { ExchangeInt(&self->State, state); }
+inline void MidiSynth_setState(MidiSynth *self, ALenum state) { self->State = state; }
inline ALenum MidiSynth_getState(const MidiSynth *self) { return self->State; }
void MidiSynth_stop(MidiSynth *self);
inline void MidiSynth_reset(MidiSynth *self) { MidiSynth_stop(self); }