diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2023-04-20 18:52:53 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2023-04-20 18:52:53 +0300 |
commit | e919ad41b01595d2cd8fb0771bd3542817ec1058 (patch) | |
tree | b8e4a6965dc860d1b2268004cf08fc51058464f5 /src/synth_gui.c | |
parent | c161e1016a04566a56b4858ea43502fed88dcc7f (diff) | |
download | synth-project-e919ad41b01595d2cd8fb0771bd3542817ec1058.tar.gz synth-project-e919ad41b01595d2cd8fb0771bd3542817ec1058.tar.bz2 synth-project-e919ad41b01595d2cd8fb0771bd3542817ec1058.zip |
Midi also plays notes now
Diffstat (limited to 'src/synth_gui.c')
-rw-r--r-- | src/synth_gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |