mixer.c
changeset 5120 1ff65e874ce3
parent 2977 97c1c76b499a
equal deleted inserted replaced
5119:d8147f6a89fb 5120:1ff65e874ce3
    87 		if (mc->active) {
    87 		if (mc->active) {
    88 			mix_int8_to_int16(mc, buffer, samples);
    88 			mix_int8_to_int16(mc, buffer, samples);
    89 			if (mc->samples_left == 0) MxCloseChannel(mc);
    89 			if (mc->samples_left == 0) MxCloseChannel(mc);
    90 		}
    90 		}
    91 	}
    91 	}
    92 
       
    93 	#if 0
       
    94 	{
       
    95 		static FILE *out = NULL;
       
    96 		if (out == NULL)
       
    97 			out = fopen("d:\\dump.raw", "wb");
       
    98 		fwrite(buffer, samples * 4, 1, out);
       
    99 	}
       
   100 	#endif
       
   101 }
    92 }
   102 
    93 
   103 MixerChannel *MxAllocateChannel(void)
    94 MixerChannel *MxAllocateChannel(void)
   104 {
    95 {
   105 	MixerChannel *mc;
    96 	MixerChannel *mc;