Am Tue, 21 Mar 2006 00:17:43 +0800 schrieb "Kun Niu" <[EMAIL PROTECTED]>:
> Dear all, > > I've implemented an mp3 encoder with lame on Windows. > I called lame_encoder constantly and I set the global variable "musicin" > each time. > It works fine for me in the first three times. > But it fails to work well for me in the forth time. > And in the following time, the file is always 441 bytes with no sound. > I can see the following two functions: > lame_encode_flush_nogap > lame_encode_flush > And I called lame_encode_flush each time. That's the error. You have to call lame_encode_flush() only once, at the end of the encoding. Bye, Alexander. -- "One world, one web, one program" -- Microsoft promotional ad "Ein Volk, ein Reich, ein Fuehrer" -- Adolf Hitler http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 WL http://www.amazon.de/exec/obidos/registry/1FZ4DTHQE9PQ8/ref=wl_em_to/ _______________________________________________ mp3encoder mailing list mp3encoder@minnie.tuhs.org http://minnie.tuhs.org/mailman/listinfo/mp3encoder