Created
August 9, 2023 07:08
-
-
Save fredrb/b150b4933be91ca461aee199051ef4ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void oscillator_callback(void *userdata, Uint8 *stream, int len) { | |
float *fstream = (float *)stream; | |
for (int i = 0; i < BUFFER_SIZE; i++) { | |
float v = next(A4_oscillator); | |
fstream[i] = v; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment