equal
deleted
inserted
replaced
71 } |
71 } |
72 |
72 |
73 static void MxCloseChannel(MixerChannel *mc) |
73 static void MxCloseChannel(MixerChannel *mc) |
74 { |
74 { |
75 if (mc->flags & MX_AUTOFREE) free(mc->memory); |
75 if (mc->flags & MX_AUTOFREE) free(mc->memory); |
|
76 mc->active = false; |
76 mc->memory = NULL; |
77 mc->memory = NULL; |
77 mc->active = false; |
|
78 } |
78 } |
79 |
79 |
80 void MxMixSamples(Mixer *mx, void *buffer, uint samples) |
80 void MxMixSamples(Mixer *mx, void *buffer, uint samples) |
81 { |
81 { |
82 MixerChannel *mc; |
82 MixerChannel *mc; |