The only change/addition (so far) that would be needed in the lame code would be
the following in BladMP3EncDLL.c :

        if ( 0 != ( nInitReturn = lame_init_params( gfp ) ) )
        {
                return nInitReturn;
        }

to

        if ( 0 != ( nInitReturn = lame_init_params( gfp ) ) )
        {
                return nInitReturn;
        }
        else
        {
                // put modified informations in the input structure
                if (pbeConfig->dwConfig==BE_CONFIG_LAME)
                {
                        if (pbeConfig->format.LHV1.dwReSampleRate == 0)
                                pbeConfig->format.LHV1.dwReSampleRate = 
gfp->out_samplerate;
                }
        }


with also the addition of #include "lame_global_flags.h"

I don't think it will harm anyone (unless the structure is in unwritable memory
which is very unlikely). And that would help developpers.
_______________________________________________
mp3encoder mailing list
[EMAIL PROTECTED]
http://minnie.tuhs.org/mailman/listinfo/mp3encoder

Reply via email to