Home
last modified time | relevance | path

Searched refs:sample_val (Results 1 – 3 of 3) sorted by relevance

/AliOS-Things-master/components/uvoice/media/
A Duvoice_fade.c18 double sample_val; in fade_out_proc_8bit() local
24 sample_val = (double)*ptr; in fade_out_proc_8bit()
26 sample_val /= (double)scope; in fade_out_proc_8bit()
27 *ptr = (uint8_t)sample_val; in fade_out_proc_8bit()
47 double sample_val; in fade_in_proc_8bit() local
56 sample_val = (double)*ptr; in fade_in_proc_8bit()
84 double sample_val; in fade_out_proc_16bit() local
90 sample_val = (double)*ptr; in fade_out_proc_16bit()
93 *ptr = (short)sample_val; in fade_out_proc_16bit()
113 double sample_val; in fade_in_proc_16bit() local
[all …]
/AliOS-Things-master/components/uvoice/test/
A Dtest_player.c109 unsigned int sample_val; in play_sine_wave() local
132 sample_val = 0; in play_sine_wave()
133 sample_val += (short)triangle_float; in play_sine_wave()
134 sample_val = sample_val << 16; in play_sine_wave()
135 sample_val += (short)sin_float; in play_sine_wave()
136 samples_data[sample_idx] = sample_val; in play_sine_wave()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/
A Dcommon.h295 double sample_val = TfLiteRound(func(min + i * step) * 32768.0); in gen_lut() local
304 table[i] = std::min<double>(std::max<double>(sample_val - bias, -32768.0), in gen_lut()
324 float sample_val = TfLiteRound(func(min + i * step) * 32768.0f); in gen_lut() local
333 table[i] = std::min<float>(std::max<float>(sample_val - bias, -32768.0f), in gen_lut()

Completed in 6 milliseconds