PortAudio
2.0
|
How many sine waves can we calculate and play in less than 80% CPU Load. More...
Data Structures | |
struct | paTestData |
Macros | |
#define | MAX_SINES (2000) |
#define | MAX_USAGE (0.5) |
#define | SAMPLE_RATE (44100) |
#define | FREQ_TO_PHASE_INC(freq) (freq/(float)SAMPLE_RATE) |
#define | MIN_PHASE_INC FREQ_TO_PHASE_INC(200.0f) |
#define | MAX_PHASE_INC (MIN_PHASE_INC * (1 << 5)) |
#define | FRAMES_PER_BUFFER (512) |
#define | M_PI (3.14159265) |
#define | TWOPI (M_PI * 2.0) |
#define | TABLE_SIZE (1024) |
Typedefs | |
typedef struct paTestData | paTestData |
Functions | |
float | LookupSine (paTestData *data, float phase) |
int | main (void) |
How many sine waves can we calculate and play in less than 80% CPU Load.
#define FRAMES_PER_BUFFER (512) |
#define FREQ_TO_PHASE_INC | ( | freq | ) | (freq/(float)SAMPLE_RATE) |
#define M_PI (3.14159265) |
#define MAX_PHASE_INC (MIN_PHASE_INC * (1 << 5)) |
#define MAX_SINES (2000) |
#define MAX_USAGE (0.5) |
#define MIN_PHASE_INC FREQ_TO_PHASE_INC(200.0f) |
#define SAMPLE_RATE (44100) |
#define TABLE_SIZE (1024) |
#define TWOPI (M_PI * 2.0) |
typedef struct paTestData paTestData |
float LookupSine | ( | paTestData * | data, |
float | phase | ||
) |
int main | ( | void | ) |