diff options
Diffstat (limited to 'src/oscillator.h')
-rw-r--r-- | src/oscillator.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/oscillator.h b/src/oscillator.h new file mode 100644 index 0000000..945d1e3 --- /dev/null +++ b/src/oscillator.h @@ -0,0 +1,22 @@ +struct oscillator { + int type; + char name[128]; + +} + +struct sin_oscillator { + struct oscillator osc; + +} + + + + +get_next_sample(osc_handle, sample_rate, time?) + + + + +pa_callback // sound system callback to get next FRAMES_PER_BUFFER frames +|__ get_frame // creates a single frame -> corresponding to X samples where X is the number of channels (2 for our stereo case) + |__ make_sample |