shithub: soundpipe

Download patch

ref: 0920aafbc070e7a00d339834e8394f3dbebf6624
parent: 49ff67154a0150cade077dcd040d68bc6a200b17
author: Paul Batchelor <thisispaulbatchelor@gmail.com>
date: Mon Oct 5 15:44:03 EDT 2020

removed auxdata

--- a/h/base.h
+++ b/h/base.h
@@ -12,11 +12,6 @@
 
 typedef unsigned long sp_frame;
 
-typedef struct sp_auxdata {
-    size_t size;
-    void *ptr;
-} sp_auxdata;
-
 typedef struct sp_data {
     SPFLOAT *out;
     int sr;
@@ -31,9 +26,6 @@
     char state;
     SPFLOAT val;
 } sp_param;
-
-int sp_auxdata_alloc(sp_auxdata *aux, size_t size);
-int sp_auxdata_free(sp_auxdata *aux);
 
 int sp_create(sp_data **spp);
 int sp_createn(sp_data **spp, int nchan);
--- a/modules/base.c
+++ b/modules/base.c
@@ -155,21 +155,6 @@
     return SP_OK;
 }
 
-int sp_auxdata_alloc(sp_auxdata *aux, size_t size)
-{
-    aux->ptr = malloc(size);
-    aux->size = size;
-    memset(aux->ptr, 0, size);
-    return SP_OK;
-}
-
-int sp_auxdata_free(sp_auxdata *aux)
-{
-    free(aux->ptr);
-    return SP_OK;
-}
-
-
 SPFLOAT sp_midi2cps(SPFLOAT nn)
 {
     return pow(2, (nn - 69.0) / 12.0) * 440.0;