1
0
Fork 0
forked from len0rd/rockbox

Stop timestretch freezing things during format changes.

When it was inactive but enabled, the format change hook was dropping
through to code that it shouldn't execute without it also being active
in processing samples.

Change-Id: Ie7899df0395d3f0d10f2bf2b55ea549dd06749a7
This commit is contained in:
Michael Sevakis 2012-05-21 17:12:04 -04:00
parent 545f41790b
commit 29cfd29a6c

View file

@ -478,7 +478,8 @@ static void tdspeed_process_new_format(struct dsp_proc_entry *this,
struct sample_format *format = &src->format;
int channels = format->num_channels;
if (format->codec_frequency != st->samplerate)
if (format->codec_frequency != st->samplerate ||
!dsp_proc_active(dsp, DSP_PROC_TIMESTRETCH))
{
/* relevent parameters are changing - all overlap will be discarded */
st->channels = channels;