GregTelevirtual
Sep 20 2006, 06:41
I'm trying to convert a wav to mp3 within my program so i'm using the LAME encoder. I can get it to work using lame_encode_buffer_interleaved() but it halves the quality which isn't what i want. So I'm trying to use lame_encode_buffer(), I've inserted the right amount of parameters etc but I'm getting a link error which I am unable to solve.
The error is
error LNK2019: unresolved external symbol _lame_encode_buffer referenced in function "public: static int __cdecl SoundEncode::EncodeMP3(char *,char *,bool,bool,void *)" (?EncodeMP3@SoundEncode@@SAHPAD0_N1PAX@Z)
Does anyone have ideas why this is happening when lame_encode_buffer_interleaved() works with no link errors.
thanks in advance
Greg
GregTelevirtual
Oct 11 2006, 03:54
someone must have, atleast, an idea about this one?
robert
Oct 11 2006, 05:34
It seems you are using the "BladeMP3EncDLL.def" file for generating the lame_enc.dll. If you look inside, you will notice "lame_encode_buffer" isn't listed in the exports section.
GregTelevirtual
Oct 18 2006, 04:23
QUOTE(robert @ Oct 11 2006, 12:34)

It seems you are using the "BladeMP3EncDLL.def" file for generating the lame_enc.dll. If you look inside, you will notice "lame_encode_buffer" isn't listed in the exports section.
thanks for the reply robert. Is it possible to add it to the list or rebuild that def file to get it in there?
GregTelevirtual
Oct 18 2006, 07:50
I have solved this. Thank you robert for pointing me in the right direction!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.