I am a newbie to the lame_enc.dll and mp3 format, in my test project , I tried many times to convert a voice wave file to mp3, but the mp3 files I got after running the EXE was 253kbps(using BE_MP3_MODE_MONO) or 556kbps(using BE_MP3_MODE_STEREO),the duration time of both mp3 files are about half of the duration of the voice wave file . so the files are of no use, they sounded strange with too fast speed. I then used some other third party tool to convert the same wave file into mp3, the mp3 file sounds good with 32kbps, so who could tell me how to set the BE_CONFIG members to get the 32kbps mp3 ? Thanks for help!

Below is the snippet.
------------------------------------------------------------

memset(&beConfig,0,sizeof(beConfig));

beConfig.dwConfig = BE_CONFIG_LAME;

beConfig.format.LHV1.dwStructVersion = 1;
beConfig.format.LHV1.dwStructSize = sizeof(beConfig);
,beConfig.format.LHV1.dwSampleRate = 44100; // INPUT FREQUENCY
beConfig.format.LHV1.dwReSampleRate = 0; // DON'T RESAMPLE
beConfig.format.LHV1.nMode = BE_MP3_MODE_MONO; // OUTPUT IN STREO
beConfig.format.LHV1.dwBitrate = dwBitrate; // MINIMUM BIT RATE
beConfig.format.LHV1.nPreset = LQP_VOICE_QUALITY; // QUALITY PRESET SETTING
beConfig.format.LHV1.dwMpegVersion = MPEG1; // MPEG VERSION (I or II)
beConfig.format.LHV1.dwPsyModel = 0; // USE DEFAULT PSYCHOACOUSTIC MODEL
beConfig.format.LHV1.dwEmphasis = 0; // NO EMPHASIS TURNED ON
beConfig.format.LHV1.bOriginal = TRUE; // SET ORIGINAL FLAG
beConfig.format.LHV1.bWriteVBRHeader = TRUE; // Write INFO tag
beConfig.format.LHV1.bNoRes = TRUE; // No Bit resorvoir
beConfig.format.LHV1.bCRC = TRUE; // INSERT CRC

// Other possibilities?
// beConfig.format.LHV1.dwMaxBitrate = 320; // MAXIMUM BIT RATE
// beConfig.format.LHV1.bCopyright = TRUE; // SET COPYRIGHT FLAG
// beConfig.format.LHV1.bPrivate = TRUE; // SET PRIVATE FLAG
// beConfig.format.LHV1.bWriteVBRHeader = TRUE; // YES, WRITE THE XING VBR HEADER
// beConfig.format.LHV1.bEnableVBR = TRUE; // USE VBR
// beConfig.format.LHV1.nVBRQuality = 5; // SET VBR QUALITY

err = beInitStream(&beConfig, &dwSamples, &dwMP3Buffer, &hbeStream);
if(err != BE_ERR_SUCCESSFUL)
{
fprintf(stderr,"Error opening encoding stream (%lu)\n", err);
return -1;
}

----------------------------------------------------------------------------------