10 if (temp>peak) peak = temp;
25 else if (val > 0x7FFFFFFF) val = 0x7FFFFFFF;
31 for(
t_size n=0;n<p_count;n++) {
54 for(
t_size n=0;n<p_count;n++)
55 p_output[n] = p_source[n] * p_scale;
112 #if audio_sample_size == 32 114 for(;p_count;p_count--)
117 if ((t & 0x007FFFFF) && !(t & 0x7F800000)) *ptr=0;
120 #elif audio_sample_size == 64 122 for(;p_count;p_count--)
125 if ((t & 0x000FFFFFFFFFFFFF) && !(t & 0x7FF0000000000000)) *ptr=0;
134 for(
t_size n=0;n<p_count;n++) {
135 p_buffer[n] += p_delta;
static audio_sample convert_to_int32_calculate_peak(const audio_sample *p_source, t_size p_count, t_int32 *p_output, audio_sample p_scale)
static audio_sample calculate_peak(const audio_sample *p_source, t_size p_count)
static void noopt_convert_from_int16(const t_int16 *p_source, t_size p_count, audio_sample *p_output, float p_scale)
static void convert_from_int32(const t_int32 *p_source, t_size p_count, audio_sample *p_output, audio_sample p_scale)
static void add_offset(audio_sample *p_buffer, audio_sample p_delta, t_size p_count)
static void convert_from_int16(const t_int16 *p_source, t_size p_count, audio_sample *p_output, audio_sample p_scale)
static t_int32 rint32(audio_sample val)
static void remove_denormals(audio_sample *p_buffer, t_size p_count)
static void convert_to_int16(const audio_sample *p_source, t_size p_count, t_int16 *p_output, audio_sample p_scale)
static void convert_to_int32(const audio_sample *p_source, t_size p_count, t_int32 *p_output, audio_sample p_scale)
static t_int64 rint64(audio_sample val)
static void noopt_scale(const audio_sample *p_source, t_size p_count, audio_sample *p_output, audio_sample p_scale)
static void noopt_convert_to_16bit(const audio_sample *p_source, t_size p_count, t_int16 *p_output, float p_scale)
static const audio_sample float16scale
T clip_t(const T &p_item, const T &p_min, const T &p_max)
static void noopt_convert_to_32bit(const audio_sample *p_source, t_size p_count, t_int32 *p_output, float p_scale)
static void noopt_convert_from_int32(const t_int32 *p_source, t_size p_count, audio_sample *p_output, float p_scale)
static void scale(const audio_sample *p_source, t_size p_count, audio_sample *p_output, audio_sample p_scale)
p_source/p_output can point to same buffer
static audio_sample noopt_calculate_peak(const audio_sample *p_src, t_size p_num)
static audio_sample convert_to_int16_calculate_peak(const audio_sample *p_source, t_size p_count, t_int16 *p_output, audio_sample p_scale)