|
From: Sam C. <sa...@su...> - 2002-05-15 09:20:55
|
On Wed, May 15, 2002 at 01:23:02AM -0300, Alejandro David Weil wrote:
> On Tue, May 14, 2002 at 03:43:37PM +0200, Lennart Poettering wrote:
> > I'd suggest adding a parameter of an enum-type:
> > typedef enum { LS_DEFAULT, LS_QUALITY, LS_EFFICIENCY} ls_resample_prior=
ity:
Indeed, some kind of flag will be required. Perhaps including the
algortihm type such as LS_LINEAR or LS_BANDLIMTED.=20
I have also changed ls_get_resampler to return ls_resample_t:
typedef struct
{
ls_resampler_init_t init;
ls_resampler_term_t term;
ls_resampler_run_t resample;
}
ls_resampler_t;
You need to get a 'void* state' by calling init and then pass
that state on to the resample and term routines. This is so
the resmapler can save state. It also means that that you only=20
need to pass 'from_type' and 'to_type' into init and the resmapler
will save the info it needs (such as the resampling factor) between
calles to resample.
cheers,
sam
--=20
sam clegg
:: sa...@su...
:: http://superduper.net/=20
:: PGP :: D91EE369
$superduper: .signature,v 1.4 2002/04/27 11:54:02 samc Exp $
|