MythTV  master
Classes | Macros | Functions
pink.h File Reference
#include <array>
#include "mythexp.h"
Include dependency graph for pink.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pink_noise_t
 

Macros

#define PINK_DEFAULT_ROWS   (12)
 
#define PINK_MAX_RANDOM_ROWS   (32)
 
#define PINK_RANDOM_BITS   (24)
 
#define PINK_RANDOM_SHIFT   ((sizeof(int32_t)*8)-PINK_RANDOM_BITS)
 

Functions

MPUBLIC void initialize_pink_noise (pink_noise_t *pink, int num_rows=PINK_DEFAULT_ROWS)
 
MPUBLIC float generate_pink_noise_sample (pink_noise_t *pink)
 

Macro Definition Documentation

◆ PINK_DEFAULT_ROWS

#define PINK_DEFAULT_ROWS   (12)

Definition at line 7 of file pink.h.

◆ PINK_MAX_RANDOM_ROWS

#define PINK_MAX_RANDOM_ROWS   (32)

Definition at line 8 of file pink.h.

◆ PINK_RANDOM_BITS

#define PINK_RANDOM_BITS   (24)

Definition at line 9 of file pink.h.

◆ PINK_RANDOM_SHIFT

#define PINK_RANDOM_SHIFT   ((sizeof(int32_t)*8)-PINK_RANDOM_BITS)

Definition at line 10 of file pink.h.

Function Documentation

◆ initialize_pink_noise()

MPUBLIC void initialize_pink_noise ( pink_noise_t pink,
int  num_rows = PINK_DEFAULT_ROWS 
)

Definition at line 41 of file pink.cpp.

Referenced by AudioOutputUtil::GeneratePinkFrames().

◆ generate_pink_noise_sample()

MPUBLIC float generate_pink_noise_sample ( pink_noise_t pink)

Definition at line 56 of file pink.cpp.

Referenced by AudioOutputUtil::GeneratePinkFrames().