Back to Audacity

The libtwolame API

au3/lib-src/twolame/doc/html/api.html

latest574 B
Original Source

This is the interface for encoding PCM audio to MPEG Audio Layer 2.

It is very similar to the libmp3lame API.

See simplefrontend/simplefrontend.c for a very simple application using the API.

Steps to encode PCM to MP2

  1. Grab a set of default options by calling:

  2. Adjust those options to suit your requirements. See twolame.h for a full list of options. eg.

  3. Initialise twolame library with these options by calling:

  4. Encode PCM audio to MP2 by calling:

  5. Flush the encoder by calling:

  6. The user must "de-initialise" the encoder at the end by calling: