Searched refs:sample_val (Results 1 – 3 of 3) sorted by relevance
18 double sample_val; in fade_out_proc_8bit() local24 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() local56 sample_val = (double)*ptr; in fade_in_proc_8bit()84 double sample_val; in fade_out_proc_16bit() local90 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 …]
109 unsigned int sample_val; in play_sine_wave() local132 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()
295 double sample_val = TfLiteRound(func(min + i * step) * 32768.0); in gen_lut() local304 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() local333 table[i] = std::min<float>(std::max<float>(sample_val - bias, -32768.0f), in gen_lut()
Completed in 6 milliseconds