diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2013-05-21 00:20:06 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2013-05-21 00:20:06 -0400 |
commit | 00e55d0451930b6c271786d476c4d8b167e80477 (patch) | |
tree | 7fa21b870a85fb17f31dead634015a4ee7b1eff4 /lib/rbcodec | |
parent | 87021f7c0ac4620eafd185ff11905ee643f72b6c (diff) | |
download | rockbox-00e55d0451930b6c271786d476c4d8b167e80477.tar.gz rockbox-00e55d0451930b6c271786d476c4d8b167e80477.zip |
Fix 87021f7 errors. There is no this->echo_pos when SPC_NOECHO != 0.
Anyway, that's true now.
Change-Id: I247ea9a10543a8b65f3e73495f0e2ea725ec533e
Diffstat (limited to 'lib/rbcodec')
-rw-r--r-- | lib/rbcodec/codecs/libspc/spc_dsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) | |||
904 | void DSP_reset( struct Spc_Dsp* this ) | 904 | void DSP_reset( struct Spc_Dsp* this ) |
905 | { | 905 | { |
906 | this->keys_down = 0; | 906 | this->keys_down = 0; |
907 | this->echo_pos = 0; | ||
908 | this->noise_count = 0; | 907 | this->noise_count = 0; |
909 | this->noise = 2; | 908 | this->noise = 2; |
910 | 909 | ||
@@ -927,6 +926,7 @@ void DSP_reset( struct Spc_Dsp* this ) | |||
927 | #endif /* SPC_BRRCACHE */ | 926 | #endif /* SPC_BRRCACHE */ |
928 | 927 | ||
929 | #if !SPC_NOECHO | 928 | #if !SPC_NOECHO |
929 | this->echo_pos = 0; | ||
930 | echo_init(this); | 930 | echo_init(this); |
931 | #endif /* SPC_NOECHO */ | 931 | #endif /* SPC_NOECHO */ |
932 | 932 | ||