From: Hector Martin Date: Sat, 18 Dec 2010 19:51:05 +0000 (+0100) Subject: Add olGetRenderParams() X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=c5e23e95e008ec7dbfd673c957c9d538a275ea13;p=openlase-old.git Add olGetRenderParams() --- diff --git a/include/libol.h b/include/libol.h index a1c5709..0f0e376 100644 --- a/include/libol.h +++ b/include/libol.h @@ -70,6 +70,7 @@ typedef struct { int olInit(int buffer_count, int max_points); void olSetRenderParams(OLRenderParams *params); +void olGetRenderParams(OLRenderParams *params); typedef void (*AudioCallbackFunc)(float *leftbuf, float *rightbuf, int samples); diff --git a/libol/libol.c b/libol/libol.c index ce06979..ee10c24 100644 --- a/libol/libol.c +++ b/libol/libol.c @@ -311,6 +311,11 @@ void olSetRenderParams(OLRenderParams *sp) params = *sp; } +void olGetRenderParams(OLRenderParams *sp) +{ + *sp = params; +} + void olShutdown(void) { jack_client_close (client);