ref: 78429de1d232b71f5f409adf5e19e013f8c8212f
parent: 992beaa9bea5d3cd1aae961f80f581d2003bcc79
author: Paul Brossier <piem@piem.org>
date: Wed Oct 21 23:10:44 EDT 2009
src/*vec.h: strip down _*vec_t
--- a/src/cvec.h
+++ b/src/cvec.h
@@ -35,15 +35,13 @@
*/
-/** Spectrum buffer type */
-typedef struct _cvec_t cvec_t;
/** Buffer for complex data */
-struct _cvec_t {
+typedef struct {
uint_t length; /**< length of buffer = (requested length)/2 + 1 */
uint_t channels; /**< number of channels */
smpl_t **norm; /**< norm array of size [length] * [channels] */
smpl_t **phas; /**< phase array of size [length] * [channels] */
-};
+} cvec_t;
/** cvec_t buffer creation function
--- a/src/fvec.h
+++ b/src/fvec.h
@@ -34,14 +34,13 @@
*/
-/** Sample buffer type */
-typedef struct _fvec_t fvec_t;
-/** Buffer for real values */
-struct _fvec_t {
+/** Buffer for real data */
+typedef struct {
uint_t length; /**< length of buffer */
uint_t channels; /**< number of channels */
smpl_t **data; /**< data array of size [length] * [channels] */
-};
+} fvec_t;
+
/** fvec_t buffer creation function
\param length the length of the buffer to create
--- a/src/lvec.h
+++ b/src/lvec.h
@@ -35,14 +35,13 @@
*/
-/** Sample buffer type */
-typedef struct _lvec_t lvec_t;
-/** Buffer for real values */
-struct _lvec_t {
+/** Buffer for real data in double precision */
+typedef struct {
uint_t length; /**< length of buffer */
uint_t channels; /**< number of channels */
lsmp_t **data; /**< data array of size [length] * [channels] */
-};
+} lvec_t;
+
/** lvec_t buffer creation function
\param length the length of the buffer to create