Lame as a lib.

5 messages Options
Embed this post
Permalink
Daniel Jesús Valencia Sánchez

Lame as a lib.

Reply Threaded More More options
Print post
Permalink
Hi, I'm using Lame as a library and I'm running into a bunch of problems.
How can I subscribe to this list?

The call sequence I'm using is roughly: lame_init(), lame_set_num_samples(),
lame_set_num_channels(), lame_set_in_samplerate(), lame_init_params(),
lame_encode_buffer_int(), lame_encode_flush(), lame_close().

Thanks!

- Daniel
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Lame-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/lame-dev
Robert Hegemann

Re: Lame as a lib.

Reply Threaded More More options
Print post
Permalink
Hello Daniel,

----- Original Message -----
From: "Daniel Jesús Valencia Sánchez" <[hidden email]>
To: <[hidden email]>
Sent: Friday, April 11, 2008 8:25 PM
Subject: [Lame-dev] Lame as a lib.


> Hi, I'm using Lame as a library and I'm running into a bunch of problems.
> How can I subscribe to this list?

follow this link:
https://lists.sourceforge.net/lists/listinfo/lame-dev

>
> The call sequence I'm using is roughly: lame_init(),
> lame_set_num_samples(),
> lame_set_num_channels(), lame_set_in_samplerate(), lame_init_params(),
> lame_encode_buffer_int(), lame_encode_flush(), lame_close().

What do you want to know?

>
> Thanks!
>
> - Daniel


Ciao Robert


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Lame-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/lame-dev
Daniel Jesús Valencia Sánchez

Re: Lame as a lib.

Reply Threaded More More options
Print post
Permalink
Hi, thanks for the response.

Aparently it all succeeds, but when I listen to the output mp3 file it
appears to be rescaled to half the time, with the corresponding increase in
frequencies and pitch.

What I would like to know is, what am I doing wrong or what am I missing.

Thanks!

- Daniel


On Mon, Apr 14, 2008 at 5:26 AM, Robert Hegemann <[hidden email]>
wrote:

> Hello Daniel,
>
> ----- Original Message ----- From: "Daniel Jesús Valencia Sánchez" <
> [hidden email]>
> To: <[hidden email]>
> Sent: Friday, April 11, 2008 8:25 PM
> Subject: [Lame-dev] Lame as a lib.
>
>
>  Hi, I'm using Lame as a library and I'm running into a bunch of problems.
> > How can I subscribe to this list?
> >
>
> follow this link:
> https://lists.sourceforge.net/lists/listinfo/lame-dev
>
>
> > The call sequence I'm using is roughly: lame_init(),
> > lame_set_num_samples(),
> > lame_set_num_channels(), lame_set_in_samplerate(), lame_init_params(),
> > lame_encode_buffer_int(), lame_encode_flush(), lame_close().
> >
>
> What do you want to know?
>
>
> > Thanks!
> >
> > - Daniel
> >
>
>
> Ciao Robert
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Lame-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/lame-dev
Robert Hegemann

Re: Lame as a lib.

Reply Threaded More More options
Print post
Permalink
Am Montag, 14. April 2008 18:07 schrieb Daniel Jesús Valencia Sánchez:

> Hi, thanks for the response.
>
> Aparently it all succeeds, but when I listen to the output mp3 file it
> appears to be rescaled to half the time, with the corresponding increase in
> frequencies and pitch.
>
> What I would like to know is, what am I doing wrong or what am I missing.
>
> Thanks!
>
> - Daniel

Maybe you are reading in every second sample from input file,
which would result in double speed playback:
- test: write out what you read as raw PCM and listen to the result
If the playback isn't just at double speed, but distortet, maybe
there is something wrong in the way you count the samples read in.
- compare yours with our code in frontend/main.c and frontend/get_audio.c


Ciao Robert

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Lame-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/lame-dev
Daniel Jesús Valencia Sánchez

Re: Lame as a lib.

Reply Threaded More More options
Print post
Permalink
Hi, Robert, all

Thanks for the response... It took me some time to find a really dodgy bug
in my code interpreting the wave files.  That's fixed now.  However, I now
get this message:

strange error flushing buffer ...

Any pointers regarding where should I look into?

Thanks again!

- Daniel


On Tue, Apr 15, 2008 at 3:07 AM, Robert Hegemann <[hidden email]>
wrote:

> Am Montag, 14. April 2008 18:07 schrieb Daniel Jesús Valencia Sánchez:
> > Hi, thanks for the response.
> >
> > Aparently it all succeeds, but when I listen to the output mp3 file it
> > appears to be rescaled to half the time, with the corresponding increase
> in
> > frequencies and pitch.
> >
> > What I would like to know is, what am I doing wrong or what am I
> missing.
> >
> > Thanks!
> >
> > - Daniel
>
> Maybe you are reading in every second sample from input file,
> which would result in double speed playback:
> - test: write out what you read as raw PCM and listen to the result
> If the playback isn't just at double speed, but distortet, maybe
> there is something wrong in the way you count the samples read in.
> - compare yours with our code in frontend/main.c and frontend/get_audio.c
>
>
> Ciao Robert
>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Lame-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/lame-dev