summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorz3bra <contactatz3bradotorg>2016-11-02 12:18:29 +0100
committerz3bra <contactatz3bradotorg>2016-11-08 16:47:51 +0100
commit29bd24ebb68210e2cd61b8b25f2516a88dd54377 (patch)
tree5dfe921514991835fb4bc188246099a692e89ca6 /ratox.c
parent16b2d6e514d8cbf583d386e3612474cafc05f318 (diff)
Pass global toxav struct to make calls
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ratox.c b/ratox.c
index 21bf9c8..ea2da33 100644
--- a/ratox.c
+++ b/ratox.c
@@ -329,7 +329,7 @@ again:
}
static uint32_t
-interval(Tox *m, struct ToxAV*av)
+interval(Tox *m, struct ToxAV *av)
{
return MIN(tox_iteration_interval(m), toxav_iteration_interval(av));
}
@@ -543,7 +543,7 @@ sendfriendcalldata(struct friend *f)
nanosleep(&diff, NULL);
}
clock_gettime(CLOCK_MONOTONIC, &f->av.lastsent);
- if (!toxav_audio_send_frame(av, f->av.num, buf, pcm, AUDIOCHANNELS, AUDIOCHANNELS, NULL))
+ if (!toxav_audio_send_frame(toxav, f->av.num, buf, pcm, AUDIOCHANNELS, AUDIOCHANNELS, NULL))
weprintf("Failed to send audio frame\n");
}
@@ -1198,7 +1198,7 @@ toxinit(void)
dataload();
datasave();
- toxav = toxav_new(tox, MAXCALLS);
+ toxav = toxav_new(tox, NULL);
if (!toxav)
eprintf("Core : ToxAV > Initialization failed\n");