From 00e55d0451930b6c271786d476c4d8b167e80477 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Tue, 21 May 2013 00:20:06 -0400 Subject: Fix 87021f7 errors. There is no this->echo_pos when SPC_NOECHO != 0. Anyway, that's true now. Change-Id: I247ea9a10543a8b65f3e73495f0e2ea725ec533e --- lib/rbcodec/codecs/libspc/spc_dsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rbcodec/codecs/libspc/spc_dsp.c b/lib/rbcodec/codecs/libspc/spc_dsp.c index c94fbc990e..58bf681d2e 100644 --- a/lib/rbcodec/codecs/libspc/spc_dsp.c +++ b/lib/rbcodec/codecs/libspc/spc_dsp.c @@ -904,7 +904,6 @@ void DSP_run_( struct Spc_Dsp* this, long count, int32_t* out_buf ) void DSP_reset( struct Spc_Dsp* this ) { this->keys_down = 0; - this->echo_pos = 0; this->noise_count = 0; this->noise = 2; @@ -927,6 +926,7 @@ void DSP_reset( struct Spc_Dsp* this ) #endif /* SPC_BRRCACHE */ #if !SPC_NOECHO + this->echo_pos = 0; echo_init(this); #endif /* SPC_NOECHO */ -- cgit