Some more hopefully working progress
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user