Searched refs:sample_bytes (Results 1 – 5 of 5) sorted by relevance
58 int sample_bytes = APP_KWS_BITS / 8; variable130 frame_size = channel_num * sample_bytes; in pcm_stream_read()141 for (j = 0; j < sample_bytes; j++) in pcm_stream_read()144 ((char *)buf)[i * sample_bytes + j] = tempBuf[i * frame_size + j]; // MIC1 in pcm_stream_read()147 … ((char *)mic2_pcm_tmp_buf)[i * sample_bytes + j] = tempBuf[i * frame_size + j]; // MIC2 in pcm_stream_read()148 … ((char *)mic3_pcm_tmp_buf)[i * sample_bytes + j] = tempBuf[i * frame_size + j]; // MIC3 in pcm_stream_read()196 tempBuf = (char *)malloc(duration_sample_count * sample_bytes); in CaptureSamples()201 read_len = pcm_stream_read(handle, (void *)tempBuf, duration_sample_count * sample_bytes); in CaptureSamples()
36 int sample_bytes; member103 input_samples = (input_len / inst->sample_bytes) / channels; in uvoice_resampler_process()143 out_buffer_size = fout_samples * channels * inst->sample_bytes; in uvoice_resampler_process()186 *output_len = output_samples * inst->sample_bytes; in uvoice_resampler_process()201 *output_len = input_samples * 2 * inst->sample_bytes; in uvoice_resampler_process()233 inst->sample_bytes = sbits >> 3; in uvoice_resampler_update()283 inst->sample_bytes = sbits >> 3; in uvoice_resampler_create()
262 int channel_num = 3, sample_bytes = 2, frame_size; in codec_pcm_stream_read() local272 frame_size = channel_num * sample_bytes; in codec_pcm_stream_read()277 for(j = 0; j < sample_bytes; j++) { in codec_pcm_stream_read()279 ((char *)buf)[i * sample_bytes + j] = tempBuf[i * frame_size + j]; // MIC1 in codec_pcm_stream_read()285 … ((char *)buf)[i * sample_bytes + j] = tempBuf[(i+1)*frame_size - sample_bytes + j]; // MIC3*/ in codec_pcm_stream_read()
15 void audio_dump_init(int frame_len, int sample_bytes, int channel_num);
175 int channel_num = 3, sample_bytes = 2, frame_size; in codec_pcm_stream_read() local186 frame_size = channel_num * sample_bytes; in codec_pcm_stream_read()
Completed in 9 milliseconds