diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-02-01 02:25:15 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-02-01 02:25:15 +0000 |
commit | f90cbcb652af3bf794ec61d7f7ec3de00c8b7cb2 (patch) | |
tree | 62c13ffdeb5112181897103a6a015cfc1fab98ae /apps/plugins/mpegplayer/mpeg_misc.h | |
parent | 7e402d8202af409a0ea8f3f2676a2e6f501af05b (diff) |
mpegplayer: Use the core DSP to process audio. Removes the sample rate restriction on audio and any mpeg audio samplerate may be used. Use the global sound settings for audio output with the option to force any one of the processing stages off. All are forced off by default. I didn't personally care to fully duplicate the Sound Settings menu which would have been needed since using the core one would affect settings globally and exactly the same configuration probably isn't desired since the CPU load for video playback is much greater. Rebalance the threading to compensate with some expense to buffering speed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16194 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/mpeg_misc.h')
-rw-r--r-- | apps/plugins/mpegplayer/mpeg_misc.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_misc.h b/apps/plugins/mpegplayer/mpeg_misc.h index 2da9c2e313..6c5a41655b 100644 --- a/apps/plugins/mpegplayer/mpeg_misc.h +++ b/apps/plugins/mpegplayer/mpeg_misc.h @@ -168,15 +168,6 @@ void stream_scan_normalize(struct stream_scan *sk); * direction, otherwise opposite the scan direction */ void stream_scan_offset(struct stream_scan *sk, off_t by); -/** Audio helpers **/ -static inline int32_t clip_sample(int32_t sample) -{ - if ((int16_t)sample != sample) - sample = 0x7fff ^ (sample >> 31); - - return sample; -} - /** Time helpers **/ struct hms { |