1
0
Fork 0
forked from len0rd/rockbox

Fix FS#9507 - video audio is not played if song is paused. Audio was not being unmuted by playback.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19308 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2008-12-02 23:30:10 +00:00
parent 3e166f6101
commit 0e97b1a1eb

View file

@ -40,12 +40,6 @@
#include "dsp.h"
#include "thread.h"
/* Define PCMBUF_MUTING if the codec requires muting to prevent pops */
#if !defined(HAVE_UDA1380) && !defined(HAVE_TLV320) && !defined(HAVE_AS3514) \
&& !defined(HAVE_WM8978)
#define PCMBUF_MUTING
#endif
/* Clip sample to signed 16 bit range */
static inline int32_t clip_sample_16(int32_t sample)
{
@ -493,21 +487,10 @@ unsigned char * pcmbuf_get_meminfo(size_t *length)
void pcmbuf_pause(bool pause)
{
#ifdef PCMBUF_MUTING
if (pause)
pcm_mute(true);
#endif
if (pcm_is_playing())
pcm_play_pause(!pause);
else if (!pause)
pcmbuf_play_start();
#ifdef PCMBUF_MUTING
if (!pause)
pcm_mute(false);
#endif
trigger_cpu_boost();
}
/* Force playback. */