Explorar o código

fix filter bug

LTVA1 %!s(int64=3) %!d(string=hai) anos
pai
achega
45ae2671ad
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      sound_engine/sound_engine.c

+ 1 - 1
sound_engine/sound_engine.c

@@ -99,7 +99,7 @@ void sound_engine_fill_buffer(SoundEngine* sound_engine, uint16_t* audio_buffer,
 				
 				if(channel->flags & SE_ENABLE_FILTER)
 				{
-					sound_engine_filter_cycle(&channel->filter, channel_output[i]);
+					sound_engine_filter_cycle(&channel->filter, channel_output_final[chan]);
 
 					switch(channel->filter_mode)
 					{