[EMAIL PROTECTED] wrote:
> 
> Hi all,
> 
>         just wanted to spark a bit of thought on some of the future direction
> of lame.  This occured to me after I read that for the update to lame3.30 we
> can now do ID3 tags
> 
> Consider the following ideas related to mp3 encoding
> - CD-ripping (CD paranoia)
> - resampling (sox)

Resampling is something I'm looking into for the libsndfile library.
The idea would be to open a sound file with

    sndfile = sf_open_read ("filename", &sfinfo);

and then if the sample rate wasn't correct ask libsndfile to do SRC
on read like

   if (sfinfo.samplerate != 44100)
       sf_mode_set (sndfile, &sfinfo, SF_MODE_SRC, 441000) ;

This would modify the sfinfo struct to be correct wrt number of
samples at the new sample rate and all subsequent calls to the 
sf_read_XXX functions would return samples in terms of the new
sample rate. A similar sort of thing could also be implemented
for the write functions.

My aim is for a high quality, sinc function style SRC and I'm 
aiming for an SRC signal to noise ratio of 100dB or so.

I've started this thing but I'm extremely busy just at the moment.
This should settel down in a wek or two so I can get this stuff 
implemented.

Cheers,
Erik
-- 
+-------------------------------------------------+
     Erik de Castro Lopo     [EMAIL PROTECTED]
+-------------------------------------------------+
Peter F. Curran : Microsoft. Still delivering a text editor with 
    Win95/98 that can only open a max 64K file, despite being on 
    a machine with an 8Gig HD and 64M of ram....
G Cook: Perhaps, but Notepad is still the most functional program 
    in the whole suite!
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )

Reply via email to