2014-02-05 23:28:33 -08:00
|
|
|
#include "crap_util.h"
|
|
|
|
|
|
|
|
#define ID 0xEC57A71C
|
|
|
|
#define LABEL "crap_noise"
|
|
|
|
#define NAME "crap noise generator"
|
|
|
|
#define AUTHOR "Connor Olding"
|
|
|
|
#define COPYRIGHT "MIT"
|
|
|
|
#define PARAMETERS 0
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
} personal;
|
|
|
|
|
|
|
|
static void
|
|
|
|
process(personal *data,
|
|
|
|
float *in_L, float *in_R,
|
|
|
|
float *out_L, float *out_R,
|
2014-02-05 23:47:16 -08:00
|
|
|
unsigned long count)
|
|
|
|
{
|
2014-02-05 23:28:33 -08:00
|
|
|
// TODO: separate and preserve mirand for each channel
|
|
|
|
for (unsigned long pos = 0; pos < count; pos++)
|
|
|
|
out_L[pos] = whitenoise();
|
|
|
|
for (unsigned long pos = 0; pos < count; pos++)
|
|
|
|
out_R[pos] = whitenoise();
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
process_double(personal *data,
|
|
|
|
double *in_L, double *in_R,
|
|
|
|
double *out_L, double *out_R,
|
2014-02-05 23:47:16 -08:00
|
|
|
unsigned long count)
|
|
|
|
{
|
2014-02-05 23:28:33 -08:00
|
|
|
for (unsigned long pos = 0; pos < count; pos++)
|
|
|
|
out_L[pos] = whitenoise();
|
|
|
|
for (unsigned long pos = 0; pos < count; pos++)
|
|
|
|
out_R[pos] = whitenoise();
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2014-02-05 23:47:16 -08:00
|
|
|
construct(personal *data)
|
|
|
|
{}
|
2014-02-05 23:28:33 -08:00
|
|
|
|
|
|
|
static void
|
2014-02-05 23:47:16 -08:00
|
|
|
destruct(personal *data)
|
|
|
|
{}
|
2014-02-05 23:28:33 -08:00
|
|
|
|
|
|
|
static void
|
2014-02-05 23:47:16 -08:00
|
|
|
resume(personal *data)
|
|
|
|
{}
|
2014-02-05 23:28:33 -08:00
|
|
|
|
|
|
|
static void
|
2014-02-05 23:47:16 -08:00
|
|
|
pause(personal *data)
|
|
|
|
{}
|
2014-02-05 23:28:33 -08:00
|
|
|
|
|
|
|
static void
|
2014-02-05 23:47:16 -08:00
|
|
|
adjust(personal *data, unsigned long fs)
|
|
|
|
{}
|