From 78429de1d232b71f5f409adf5e19e013f8c8212f Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 22 Oct 2009 03:10:44 +0200 Subject: [PATCH] src/*vec.h: strip down _*vec_t --- src/cvec.h | 6 ++---- src/fvec.h | 9 ++++----- src/lvec.h | 9 ++++----- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/src/cvec.h b/src/cvec.h index 9ff948bc..ff6d2b6a 100644 --- a/src/cvec.h +++ b/src/cvec.h @@ -35,15 +35,13 @@ extern "C" { */ -/** 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 diff --git a/src/fvec.h b/src/fvec.h index 1a6e3011..c13fdc22 100644 --- a/src/fvec.h +++ b/src/fvec.h @@ -34,14 +34,13 @@ extern "C" { */ -/** 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 diff --git a/src/lvec.h b/src/lvec.h index 400bab44..5273ea32 100644 --- a/src/lvec.h +++ b/src/lvec.h @@ -35,14 +35,13 @@ extern "C" { */ -/** 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 -- 2.26.2