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:
parent
545f41790b
commit
29cfd29a6c
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue