XMMS2
format.c File Reference
#include <math.h>
#include "common.h"

Macros

#define FFT_LEN   XMMSC_VISUALIZATION_WINDOW_SIZE
#define FFT_BITS   9
#define AMP_LOG_SCALE_THRESHOLD0   0.001f
#define AMP_LOG_SCALE_DIVISOR   6.908f /* divisor = -log threshold */
#define FREQ_LOG_SCALE_BASE   2.0f

Functions

void fft_init ()
short fill_buffer (int16_t *dest, xmmsc_vis_properties_t *prop, int channels, int size, short *src)

Macro Definition Documentation

◆ AMP_LOG_SCALE_DIVISOR

#define AMP_LOG_SCALE_DIVISOR   6.908f /* divisor = -log threshold */

◆ AMP_LOG_SCALE_THRESHOLD0

#define AMP_LOG_SCALE_THRESHOLD0   0.001f

◆ FFT_BITS

#define FFT_BITS   9

◆ FFT_LEN

#define FFT_LEN   XMMSC_VISUALIZATION_WINDOW_SIZE

Referenced by fft_init().

◆ FREQ_LOG_SCALE_BASE

#define FREQ_LOG_SCALE_BASE   2.0f

Function Documentation

◆ fft_init()

void fft_init ( void )

Referenced by send_data().

◆ fill_buffer()

short fill_buffer ( int16_t * dest,
xmmsc_vis_properties_t * prop,
int channels,
int size,
short * src )

Referenced by write_shm(), and write_udp().