Hi Harald

Thanks for your comments. At the moment I am not quite shure what the best
implementation would be. My application presently takes the line input data
from the MM API and I can save it to a temp wav file (44KHz). I want to be
able to play it back at any time if so desired. When I want to save
(compress or encode) the temp file, I can now use the ACM or the LAME dll,
works fine.

My intentions are:
1) instead of using a temp wave file directly encode the line input to an
MP3 file
2) to be able to playback (decode) the previously encoded MP3 file from
inside the application
3) to be able to stream to a socket in the future

I am not sure how this is best implemented in the lame dll, but it would be
very useful.
Albert Faber has implemented the record/playback option in his CDex program.
Not shure how he did it.


Thanks for your offer anyway
Helmut



----- Original Message -----
From: Harald Niesche <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, 3 August 2000 13:28
Subject: Re: [MP3 ENCODER] Decoding with lame?


> What kind of API do you have in mind? There is some code in Lame that can
> read from several kinds of input files and delivers a buffer full of
samples
> (actually, a left buffer and a right buffer). Would you like that, some
kind
> of pull interface? You open the stream and then pull frames out of it as
> long as there are more - that would mean I just have to write a small
> wrapper around the original APIs and export it from the DLL. I am thinking
> of lameOpen, lameRead and lameClose with some options or even some
> intelligence that deduces the type of file automagically.
>
> More involved would be the ability to have a push interface, where you
> deliver some part of the stream (MP3, raw, .wav, whatever) when you feel
> like it, the encoder engine encodes as much data as possible and returns
to
> you, waiting for you to deliver more data.
>
> Harald
>
>
> ----- Original Message -----
> From: "Helmut Strickner" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, August 03, 2000 3:33 AM
> Subject: Re: [MP3 ENCODER] Decoding with lame?
>
>
> The question was regarding the decoding with the dll verion of lame.
>
> As Harald Niesche has observed there is no code for decoding in the dll
> version.
> It would really be very useful to implement the decode option into the
dll.
>
> Anyone willing to have a go?
>
> Helmut
>
>
> > ::  I have read some postings on this list about the possibility to use
> lame for
> > ::  decoding. Is it possible, and if true does that apply to the exe
> version
> > ::  only?. I have not found any clue about setting the lame dll for
> 'decoding of
> > ::  an mp3 file' option. I would like to encode and play back without
> resorting
> > ::  to winamp.
> > ::
> > lame --decode  Source.mp3  Destination.wav
> > lame --decode  Source.mp3 - | Program_to_read_wavs_from_stdin ...
> >
> > --
> > Mit freundlichen Gr��en
> > Frank Klemm
> >
> > eMail | [EMAIL PROTECTED]       home: [EMAIL PROTECTED]
> > phone | +49 (3641) 64-2721    home: +49 (3641) 390545
> > sMail | R.-Breitscheid-Str. 43, 07747 Jena, Germany
> >
> > --
> > MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )
>
> --
> MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )
>
>
> --
> MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )

--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )

Reply via email to