From: fennecdjay Date: Mon, 18 Mar 2019 09:55:07 +0000 (+0100) Subject: :art: Separate Soundinfo X-Git-Tag: nightly~2619 X-Git-Url: http://10.11.0.4:5575/?a=commitdiff_plain;h=3ba6e874dac51c36c727d554e96ac86f70848373;p=gwion.git :art: Separate Soundinfo --- diff --git a/include/driver.h b/include/driver.h index b336f6f8..cc610e18 100644 --- a/include/driver.h +++ b/include/driver.h @@ -1,6 +1,6 @@ #ifndef __DRIVER #define __DRIVER - +#include "soundinfo.h" typedef m_bool (*f_drvini)(struct VM_*, struct BBQ_*); typedef void (*f_drvrun)(struct VM_*, struct BBQ_*); typedef void (*f_drvdel)(struct VM_*, struct BBQ_*); @@ -12,12 +12,13 @@ typedef struct DriverData_ { f_drvdel del; } DriverData; +/* struct SoundInfo_ { uint32_t sr; uint8_t in, out; m_str arg; }; - +*/ typedef void (*f_bbqset)(struct DriverData_*); typedef void (*f_bbqrun)(const struct VM_*); typedef struct BBQ_ { diff --git a/include/soundinfo.h b/include/soundinfo.h new file mode 100644 index 00000000..33a861e1 --- /dev/null +++ b/include/soundinfo.h @@ -0,0 +1,8 @@ +#ifndef __SOUNDINFO +#define __SOUNDINFO +struct SoundInfo_ { + uint32_t sr; + uint8_t in, out; + m_str arg; +}; +#endif diff --git a/src/arg.c b/src/arg.c index 44a1d174..67afd0f6 100644 --- a/src/arg.c +++ b/src/arg.c @@ -1,9 +1,7 @@ #include #include "gwion_util.h" -#include "oo.h" -#include "vm.h" -#include "driver.h" #include "arg.h" +#include "soundinfo.h" #define GWIONRC ".gwionrc" ANN static inline void config_end(const Vector config) {