Home
last modified time | relevance | path

Searched refs:sample_bytes (Results 1 – 5 of 5) sorted by relevance

/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/
A Daudio_provider.cc58 int sample_bytes = APP_KWS_BITS / 8; variable
130 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()
/AliOS-Things-master/components/uvoice/audio/process/
A Dproc_resample.c36 int sample_bytes; member
103 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()
/AliOS-Things-master/hardware/chip/haas1000/hal/
A Daudio.c262 int channel_num = 3, sample_bytes = 2, frame_size; in codec_pcm_stream_read() local
272 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()
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/audio_dump/include/
A Daudio_dump.h15 void audio_dump_init(int frame_len, int sample_bytes, int channel_num);
/AliOS-Things-master/hardware/chip/rtl872xd/hal/
A Daudio.c175 int channel_num = 3, sample_bytes = 2, frame_size; in codec_pcm_stream_read() local
186 frame_size = channel_num * sample_bytes; in codec_pcm_stream_read()

Completed in 9 milliseconds