diff options
Diffstat (limited to 'apps/plugins/pitch_detector.c')
-rw-r--r-- | apps/plugins/pitch_detector.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/pitch_detector.c b/apps/plugins/pitch_detector.c index 208b146c4e..36248a540d 100644 --- a/apps/plugins/pitch_detector.c +++ b/apps/plugins/pitch_detector.c | |||
@@ -1106,7 +1106,7 @@ void record_and_get_pitch(void) | |||
1106 | } | 1106 | } |
1107 | } | 1107 | } |
1108 | rb->pcm_close_recording(); | 1108 | rb->pcm_close_recording(); |
1109 | rb->pcm_set_frequency(HW_SAMPR_DEFAULT); | 1109 | rb->pcm_set_frequency(REC_SAMPR_DEFAULT | SAMPR_TYPE_REC); |
1110 | #ifdef HAVE_SCHEDULER_BOOSTCTRL | 1110 | #ifdef HAVE_SCHEDULER_BOOSTCTRL |
1111 | rb->cancel_cpu_boost(); | 1111 | rb->cancel_cpu_boost(); |
1112 | #endif | 1112 | #endif |
@@ -1141,7 +1141,7 @@ void init_everything(void) | |||
1141 | sample_rate = rb->round_value_to_list32(9000, rb->rec_freq_sampr, | 1141 | sample_rate = rb->round_value_to_list32(9000, rb->rec_freq_sampr, |
1142 | REC_NUM_FREQ, false); | 1142 | REC_NUM_FREQ, false); |
1143 | sample_rate = rb->rec_freq_sampr[sample_rate]; | 1143 | sample_rate = rb->rec_freq_sampr[sample_rate]; |
1144 | rb->pcm_set_frequency(sample_rate); | 1144 | rb->pcm_set_frequency(sample_rate | SAMPR_TYPE_REC); |
1145 | rb->pcm_init_recording(); | 1145 | rb->pcm_init_recording(); |
1146 | 1146 | ||
1147 | /* GUI */ | 1147 | /* GUI */ |