]> Some of my projects - openlase-old.git/commitdiff
Add olGetRenderParams()
authorHector Martin <hector@marcansoft.com>
Sat, 18 Dec 2010 19:51:05 +0000 (20:51 +0100)
committerHector Martin <hector@marcansoft.com>
Sat, 18 Dec 2010 19:51:05 +0000 (20:51 +0100)
include/libol.h
libol/libol.c

index a1c5709c4ce945a36e31ae088d78510a2d34123b..0f0e376c89e7cf46bc179e6b186271fa967e7f6c 100644 (file)
@@ -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);
 
index ce0697965967aa35e7a4324251e60aaa1a0dc083..ee10c24f577fd4cf5d0f88b1764ac942ae0fa6c7 100644 (file)
@@ -311,6 +311,11 @@ void olSetRenderParams(OLRenderParams *sp)
        params = *sp;
 }
 
+void olGetRenderParams(OLRenderParams *sp)
+{
+       *sp = params;
+}
+
 void olShutdown(void)
 {
        jack_client_close (client);