mixer.c
changeset 1497 698be1f59f4b
parent 1496 3d0b86f5dcb8
child 1498 cbe7edba0316
equal deleted inserted replaced
1496:3d0b86f5dcb8 1497:698be1f59f4b
    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;