#include "source.h"
#include "../exception.h"
#include "../debug.h"
#include <cmath>
#include <algorithm>
Go to the source code of this file.
◆ fillSin()
template<typename sample >
void fillSin |
( |
sample8 * |
buffer, |
|
|
dtime |
time, |
|
|
dtime |
length, |
|
|
float |
volume, |
|
|
float |
frequency, |
|
|
float |
phase, |
|
|
dtime |
sampleRate, |
|
|
unsigned char |
numChannels, |
|
|
int |
scale |
|
) |
| |
|
inline |
Definition at line 34 of file source.cpp.
46 sample*
s = (sample*)buffer;
47 float f = 2 *
pi * frequency / sampleRate;
51 for (
unsigned char c = 0; c < numChannels; c++)
CustomPoint< numeric > min(const CustomPoint< numeric > &a, const CustomPoint< numeric > &b)
CustomPoint< numeric > max(const CustomPoint< numeric > &a, const CustomPoint< numeric > &b)
JNIEnv jlong jint jint jint jint jfloat scale
JNIEnv jlong jfloat jfloat s
JNIEnv jlong jfloat jfloat jfloat v