From e919ad41b01595d2cd8fb0771bd3542817ec1058 Mon Sep 17 00:00:00 2001 From: gramanas Date: Thu, 20 Apr 2023 18:52:53 +0300 Subject: Midi also plays notes now --- src/synth_gui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/synth_gui.c') diff --git a/src/synth_gui.c b/src/synth_gui.c index 6b44595..fc4e5fa 100644 --- a/src/synth_gui.c +++ b/src/synth_gui.c @@ -104,7 +104,7 @@ draw_signals(synth_t * synth, int x, int y, int width, int height) } void -rayrun(void *synthData, PaStream *stream) +rayrun(void *synthData) { synth_t * synth = (synth_t *)synthData; PaTime current_time = 0; @@ -114,7 +114,7 @@ rayrun(void *synthData, PaStream *stream) SetTargetFPS(60); // Set our game to run at 60 frames-per-second while (!WindowShouldClose()) { - keyboard(synth, stream); + keyboard(synth, synth->stream); int prec = 100000; if (IsKeyPressed(KEY_ENTER)) { @@ -172,7 +172,7 @@ rayrun(void *synthData, PaStream *stream) EndDrawing(); //---------------------------------------------------------------------------------- - current_time = Pa_GetStreamTime(stream); + current_time = Pa_GetStreamTime(synth->stream); //printf("%f :: %ld\n", current_time - prev_time, phase); prev_time = current_time; -- cgit v1.2.3