diff options
-rw-r--r-- | apps/recorder/pcm_record.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/recorder/pcm_record.c b/apps/recorder/pcm_record.c index 30b681ab45..90a6163b8f 100644 --- a/apps/recorder/pcm_record.c +++ b/apps/recorder/pcm_record.c | |||
@@ -1759,9 +1759,11 @@ unsigned char * enc_get_pcm_data(size_t size) | |||
1759 | pcm_buffer, pcm_rd_pos); | 1759 | pcm_buffer, pcm_rd_pos); |
1760 | } | 1760 | } |
1761 | 1761 | ||
1762 | if (avail >= (sample_rate << 2)) | 1762 | if (avail >= (sample_rate << 2) || |
1763 | avail >= 3*(PCM_NUM_CHUNKS*PCM_CHUNK_SIZE) / 4) | ||
1763 | { | 1764 | { |
1764 | /* Filling up - boost codec */ | 1765 | /* Filling up - 1s data available or more or 3/4 full or more - |
1766 | boost codec */ | ||
1765 | trigger_cpu_boost(); | 1767 | trigger_cpu_boost(); |
1766 | } | 1768 | } |
1767 | 1769 | ||