I have figured it out. I actually had a two-fold problem. The first one, was exactly what Brendan said. The second one, was that I was setting the compression and the bitrate. Well, the compression essentially trumps the bitrate so that was it. Thanks again Brendan.
Also, when I am finished the code, I will try to get some sourceforge space for it. I will, of course, GPL the code. -David On Thu, 2003-06-19 at 09:17, David Butler Jr. wrote: > Thanks a lot, I will give it a try and post the results back. > > -David > > On Wed, 2003-06-18 at 22:52, Brendan Cully wrote: > > > That was supposed to read, you should call lame_init_params after > > lame_set_brate, not before. > > > > On Wednesday, 18 June 2003 at 22:43, David Butler Jr. wrote: > > > No. I actually do all initialization in the constructor of my main > > > window. > > > -David > > > > > > On Wed, 2003-06-18 at 22:31, Brendan Cully wrote: > > > > > > > On Wednesday, 18 June 2003 at 22:28, David Butler Jr. wrote: > > > > > I am currently coding a project for the Creative Nomad IIC mp3 player. > > > > > Essentially will allow you to re-encode an mp3 to a lower bitrate than > > > > > it is stored on your hard drive and download that re-encoded mp3 into > > > > > the nomad player. It based on the nomad-utils and lame. I am using C++ > > > > > for the language of choice using gtkmm for the GUI elements. > > > > > > > > > > My problem is this, I have managed to read and decode the given mp3, but > > > > > when I go to encode the pcm arrays back into a mp3 file, the file is > > > > > always set at 128kbps. I have tried multiple calls to lame_set_brate > > > > > and am using CBR. Even when I set the flag, encode and check the flag > > > > > through the api, it is set to what I set it to, but the mp3 is still > > > > > always encoded at 128kbps. I have tried everything I can think of, but > > > > > to no avail. If anyone has any suggestions, please recommend them. I > > > > > even sifted through the lame frontend code and seem to be doing > > > > > everything right. I am calling all three init functions, but still > > > > > can't change the encoding bitrate on a CBR. > > > > > > > > Are you calling lame_init_params *after* you call lame_set_brate? > > > > _______________________________________________ > > > > mp3encoder mailing list > > > > [EMAIL PROTECTED] > > > > http://minnie.tuhs.org/mailman/listinfo/mp3encoder > > > > > _______________________________________________ > > mp3encoder mailing list > > [EMAIL PROTECTED] > > http://minnie.tuhs.org/mailman/listinfo/mp3encoder -- David Butler Jr. <[EMAIL PROTECTED]> _______________________________________________ mp3encoder mailing list [EMAIL PROTECTED] http://minnie.tuhs.org/mailman/listinfo/mp3encoder