Help - Search - Members - Calendar
Full Version: Using lame_encode_buffer_interleaved or lame_encode_buffer
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - Tech
GregTelevirtual

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
someone must have, atleast, an idea about this one?
robert
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
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
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.
Invision Power Board © 2001-2008 Invision Power Services, Inc.