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

index a1c5709..0f0e376 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 ce06979..ee10c24 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);