summaryrefslogtreecommitdiffstats
path: root/src/synth_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth_gui.c')
-rw-r--r--src/synth_gui.c6
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;