Some more hopefully working progress

This commit is contained in:
2025-05-31 23:54:55 +02:00
parent 0c9698879b
commit 6b6e7df035
26 changed files with 659 additions and 393 deletions

View File

@@ -18,7 +18,7 @@ void audio_callback(void *userdata, Uint8 *stream, int len) {
SynthVoice *voice = &audio->synthVoices[v];
if (voice->volume == 0 || voice->frequency == 0) continue;
float sample = 0.0f;
float sample;
float t = (float) voice->phase / 255.0f * 2.0f - 1.0f;
switch (voice->waveform) {