zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
bs2b.c File Reference
#include "config.h"
#include <math.h>
#include <string.h>
#include "bs2b.h"

Go to the source code of this file.

Macros

#define hi_filter(in, in_1, out_1)   (bs2b->a0_hi*(in) + bs2b->a1_hi*(in_1) + bs2b->b1_hi*(out_1))
 
#define lo_filter(in, out_1)   (bs2b->a0_lo*(in) + bs2b->b1_lo*(out_1))
 
#define M_PI   3.14159265358979323846
 

Functions

void bs2b_clear (struct bs2b *bs2b)
 
void bs2b_cross_feed (struct bs2b *bs2b, float *sample)
 
int bs2b_get_level (struct bs2b *bs2b)
 
int bs2b_get_srate (struct bs2b *bs2b)
 
void bs2b_set_level (struct bs2b *bs2b, int level)
 
void bs2b_set_srate (struct bs2b *bs2b, int srate)
 
static void init (struct bs2b *bs2b)
 

Macro Definition Documentation

#define hi_filter (   in,
  in_1,
  out_1 
)    (bs2b->a0_hi*(in) + bs2b->a1_hi*(in_1) + bs2b->b1_hi*(out_1))

Definition at line 43 of file bs2b.c.

Referenced by bs2b_cross_feed().

#define lo_filter (   in,
  out_1 
)    (bs2b->a0_lo*(in) + bs2b->b1_lo*(out_1))

Definition at line 40 of file bs2b.c.

Referenced by bs2b_cross_feed().

#define M_PI   3.14159265358979323846

Definition at line 32 of file bs2b.c.

Referenced by init().

Function Documentation

void bs2b_clear ( struct bs2b bs2b)

Definition at line 149 of file bs2b.c.

References bs2b::last_sample, and memset.

Referenced by UpdateDeviceParams().

void bs2b_cross_feed ( struct bs2b bs2b,
float *  sample 
)
int bs2b_get_level ( struct bs2b bs2b)

Definition at line 131 of file bs2b.c.

References bs2b::level.

int bs2b_get_srate ( struct bs2b bs2b)

Definition at line 144 of file bs2b.c.

References bs2b::srate.

void bs2b_set_level ( struct bs2b bs2b,
int  level 
)

Definition at line 123 of file bs2b.c.

References init(), and bs2b::level.

Referenced by UpdateDeviceParams().

void bs2b_set_srate ( struct bs2b bs2b,
int  srate 
)

Definition at line 136 of file bs2b.c.

References init(), and bs2b::srate.

Referenced by UpdateDeviceParams().