foobar2000 SDK  2015-08-03
Static Public Member Functions
fb2k_audio_math

#include <audio_math.h>

+ Inheritance diagram for fb2k_audio_math:

Static Public Member Functions

static void add_offset (audio_sample *p_buffer, audio_sample p_delta, t_size p_count)
 
static audio_sample calculate_peak (const audio_sample *p_source, 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 void convert_from_int32 (const t_int32 *p_source, t_size p_count, audio_sample *p_output, audio_sample p_scale)
 
static void convert_to_int16 (const audio_sample *p_source, t_size p_count, t_int16 *p_output, audio_sample p_scale)
 
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)
 
static void convert_to_int32 (const audio_sample *p_source, t_size p_count, t_int32 *p_output, audio_sample p_scale)
 
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 void kill_denormal (audio_sample *p_buffer, t_size p_count)
 
static void scale (const audio_sample *p_source, t_size p_count, audio_sample *p_output, audio_sample p_scale)
 
- Static Public Member Functions inherited from pfc::audio_math
static void add_offset (audio_sample *p_buffer, audio_sample p_delta, t_size p_count)
 
static audio_sample calculate_peak (const audio_sample *p_source, 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 void convert_from_int32 (const t_int32 *p_source, t_size p_count, audio_sample *p_output, audio_sample p_scale)
 
static void convert_to_int16 (const audio_sample *p_source, t_size p_count, t_int16 *p_output, audio_sample p_scale)
 
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)
 
static void convert_to_int32 (const audio_sample *p_source, t_size p_count, t_int32 *p_output, audio_sample p_scale)
 
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 decodeFloat16 (uint16_t source)
 
static audio_sample decodeFloat24ptr (const void *sourcePtr)
 
static audio_sample decodeFloat24ptrbs (const void *sourcePtr)
 
static audio_sample gain_to_scale (double p_gain)
 
static void remove_denormals (audio_sample *p_buffer, t_size p_count)
 
static t_int32 rint32 (audio_sample val)
 
static t_int32 rint32 (float p_val)
 
static t_int32 rint32 (audio_sample val)
 
static t_int64 rint64 (audio_sample val)
 
static t_int64 rint64 (audio_sample val)
 
static t_int64 rint64 (audio_sample val)
 
static double samples_to_time (t_uint64 p_samples, t_uint32 p_sample_rate)
 
static void scale (const audio_sample *p_source, t_size p_count, audio_sample *p_output, audio_sample p_scale)
 
static double scale_to_gain (double scale)
 
static t_uint64 time_to_samples (double p_time, t_uint32 p_sample_rate)
 

Additional Inherited Members

- Static Public Attributes inherited from pfc::audio_math
static const audio_sample float16scale = 65536.f
 

Detailed Description

Definition at line 30 of file audio_math.h.

Member Function Documentation

static void fb2k_audio_math::add_offset ( audio_sample p_buffer,
audio_sample  p_delta,
t_size  p_count 
)
inlinestatic

Definition at line 59 of file audio_math.h.

59  {
60  audio_math_shareddll::add_offset(p_buffer,p_delta,p_count);
61  }
void SHARED_EXPORT add_offset(audio_sample *p_buffer, audio_sample p_delta, t_size p_count)
static audio_sample fb2k_audio_math::calculate_peak ( const audio_sample p_source,
t_size  p_count 
)
inlinestatic

Definition at line 53 of file audio_math.h.

53  {
54  return audio_math_shareddll::calculate_peak(p_source,p_count);
55  }
audio_sample SHARED_EXPORT calculate_peak(const audio_sample *p_source, t_size p_count)
static void fb2k_audio_math::convert_from_int16 ( const t_int16 p_source,
t_size  p_count,
audio_sample p_output,
audio_sample  p_scale 
)
inlinestatic

Definition at line 44 of file audio_math.h.

44  {
45  audio_math_shareddll::convert_from_int16(p_source,p_count,p_output,p_scale);
46  }
void SHARED_EXPORT convert_from_int16(const t_int16 *p_source, t_size p_count, audio_sample *p_output, audio_sample p_scale)
static void fb2k_audio_math::convert_from_int32 ( const t_int32 p_source,
t_size  p_count,
audio_sample p_output,
audio_sample  p_scale 
)
inlinestatic

Definition at line 47 of file audio_math.h.

47  {
48  audio_math_shareddll::convert_from_int32(p_source,p_count,p_output,p_scale);
49  }
void SHARED_EXPORT convert_from_int32(const t_int32 *p_source, t_size p_count, audio_sample *p_output, audio_sample p_scale)
static void fb2k_audio_math::convert_to_int16 ( const audio_sample p_source,
t_size  p_count,
t_int16 p_output,
audio_sample  p_scale 
)
inlinestatic

Definition at line 35 of file audio_math.h.

35  {
36  audio_math_shareddll::convert_to_int16(p_source, p_count, p_output, p_scale);
37  }
void SHARED_EXPORT convert_to_int16(const audio_sample *p_source, t_size p_count, t_int16 *p_output, audio_sample p_scale)
static audio_sample fb2k_audio_math::convert_to_int16_calculate_peak ( const audio_sample p_source,
t_size  p_count,
t_int16 p_output,
audio_sample  p_scale 
)
inlinestatic

Definition at line 41 of file audio_math.h.

41  {
42  return audio_math_shareddll::convert_to_int16_calculate_peak(p_source,p_count,p_output,p_scale);
43  }
audio_sample SHARED_EXPORT convert_to_int16_calculate_peak(const audio_sample *p_source, t_size p_count, t_int16 *p_output, audio_sample p_scale)
static void fb2k_audio_math::convert_to_int32 ( const audio_sample p_source,
t_size  p_count,
t_int32 p_output,
audio_sample  p_scale 
)
inlinestatic

Definition at line 38 of file audio_math.h.

38  {
39  audio_math_shareddll::convert_to_int32(p_source, p_count, p_output, p_scale);
40  }
void SHARED_EXPORT convert_to_int32(const audio_sample *p_source, t_size p_count, t_int32 *p_output, audio_sample p_scale)
static audio_sample fb2k_audio_math::convert_to_int32_calculate_peak ( const audio_sample p_source,
t_size  p_count,
t_int32 p_output,
audio_sample  p_scale 
)
inlinestatic

Definition at line 50 of file audio_math.h.

50  {
51  return audio_math_shareddll::convert_to_int32_calculate_peak(p_source,p_count,p_output,p_scale);
52  }
audio_sample SHARED_EXPORT convert_to_int32_calculate_peak(const audio_sample *p_source, t_size p_count, t_int32 *p_output, audio_sample p_scale)
static void fb2k_audio_math::kill_denormal ( audio_sample p_buffer,
t_size  p_count 
)
inlinestatic

Definition at line 56 of file audio_math.h.

56  {
57  audio_math_shareddll::kill_denormal(p_buffer, p_count);
58  }
void SHARED_EXPORT kill_denormal(audio_sample *p_buffer, t_size p_count)
static void fb2k_audio_math::scale ( const audio_sample p_source,
t_size  p_count,
audio_sample p_output,
audio_sample  p_scale 
)
inlinestatic

Definition at line 32 of file audio_math.h.

32  {
33  audio_math_shareddll::scale(p_source, p_count, p_output, p_scale);
34  }
void SHARED_EXPORT 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

The documentation for this class was generated from the following file: