summaryrefslogtreecommitdiff
path: root/apps/plugins/test_codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/test_codec.c')
-rw-r--r--apps/plugins/test_codec.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c
index b77611689b..b41f053571 100644
--- a/apps/plugins/test_codec.c
+++ b/apps/plugins/test_codec.c
@@ -810,34 +810,10 @@ show_menu:
810 810
811 rb->closedir(dir); 811 rb->closedir(dir);
812 } 812 }
813 /* process last samples */
814 if (use_dsp)
815 rb->dsp_flush_limiter_buffer(dspbuffer);
816 } else { 813 } else {
817 /* Just test the file */ 814 /* Just test the file */
818 res = test_track(parameter); 815 res = test_track(parameter);
819 816
820 /* process last samples */
821 if (use_dsp)
822 {
823 int channels = (wavinfo.stereomode == STEREO_MONO) ? 1 : 2;
824 int count = rb->dsp_flush_limiter_buffer(dspbuffer);
825 if (channels == 1)
826 {
827 unsigned char *s = dspbuffer, *d = dspbuffer;
828 int c = count;
829 while (c-- > 0)
830 {
831 *d++ = *s++;
832 *d++ = *s++;
833 s++;
834 s++;
835 }
836 }
837 if (wavinfo.fd >= 0)
838 rb->write(wavinfo.fd, dspbuffer, count * 2 * channels);
839 }
840
841 /* Close WAV file (if there was one) */ 817 /* Close WAV file (if there was one) */
842 if (wavinfo.fd >= 0) { 818 if (wavinfo.fd >= 0) {
843 close_wav(); 819 close_wav();