1
0
Fork 0
forked from len0rd/rockbox

e200v1/c200v1: Implement limited samplerate switching. Rates 24kHz and below are being a bear as far as minor crackling at higher amplitude-- leave them out for the time being since no solution is currently evident. 48, 44, 32 (rec rates 24, 22, 16) seem perfectly fine. I'm betting c200 is ok to include because it uses the same setup as e200.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27139 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2010-06-26 10:07:17 +00:00
parent ac622c6d67
commit b15a523870
12 changed files with 166 additions and 15 deletions

View file

@ -1106,7 +1106,7 @@ void record_and_get_pitch(void)
}
}
rb->pcm_close_recording();
rb->pcm_set_frequency(HW_SAMPR_DEFAULT);
rb->pcm_set_frequency(REC_SAMPR_DEFAULT | SAMPR_TYPE_REC);
#ifdef HAVE_SCHEDULER_BOOSTCTRL
rb->cancel_cpu_boost();
#endif
@ -1141,7 +1141,7 @@ void init_everything(void)
sample_rate = rb->round_value_to_list32(9000, rb->rec_freq_sampr,
REC_NUM_FREQ, false);
sample_rate = rb->rec_freq_sampr[sample_rate];
rb->pcm_set_frequency(sample_rate);
rb->pcm_set_frequency(sample_rate | SAMPR_TYPE_REC);
rb->pcm_init_recording();
/* GUI */