Hi all!
There's a problem in the beInitStream function. The parameter info.lay
wasn't getting stuffed.
old code:
<snip>
stereo = fr_ps.stereo;
error_protection = info.error_protection;
if (info.lay != 3)
{
printf("Only Layer 3 supported\n");
// this is that "2" return code!!!
return BE_ERR_INVALID_FORMAT_PARAMETERS;
}
<end snip>
add this:
<snip>
stereo = fr_ps.stereo;
error_protection = info.error_protection;
info.lay = fr_ps.header->lay; // NEW LINE!!!
if (info.lay != 3)
{
printf("Only Layer 3 supported\n");
return BE_ERR_INVALID_FORMAT_PARAMETERS;
}
<end snip>
Recompile, and you're good to go!
Code on,
Ilana Rudnik
> ----------
> From: Jose Mejuto[SMTP:[EMAIL PROTECTED]]
> Reply To: [EMAIL PROTECTED]
> Sent: Thursday, February 03, 2000 12:01 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [MP3 ENCODER] Question about LAME_Enc.DLL
>
> At 15:07 03/02/00 +0100, you wrote:
>
>
> Hi,
>
> I'm trying to use Lame_Enc.DLL. The import of the functions seems
> to be good. I can get the version Number. But when I want to call
> beInitStream it fails with an error 2. With BladeEnc.DLL all works well.
> Did anything change in the structures format, or anything else ?
>
> Thanks for answer on [EMAIL PROTECTED]
>
> If you can't answer the question, do you know anyone who could...
> ?
>
> Gabriel
>
>
> Hello,
>
> You can use Lame_Enc.DLL in the same way as BladeEnc.DLL, of course
> Lame_Enc.DLL have more options. Check that you do not have a mixture of
> function pointers if you use the same code.
>
> This is my first message in the list. Hello! :-)
>
>
>
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )