# API documentation for libmpg123, libout123, and libsyn123

Note: This API doc is automatically generated from the current development version that you can get via Subversion or as a daily snapshot from http://mpg123.org/snapshot. There may be differences (additions) compared to the latest stable release. See NEWS.libmpg123, NEWS.libout123, NEWS.libsyn123, and the overall NEWS file on libmpg123 versions and important changes between them.
Let me emphasize that the policy for the lib*123 family is to always stay backwards compatible -- only additions are planned (and it's not yet planned to change the plans;-).
Functions
mpg123_to_out123.c File Reference
example programs using libmpg123 and libout123
`#include <out123.h>`
`#include <mpg123.h>`
`#include <stdio.h>`
`#include <strings.h>`

Go to the source code of this file.

## Functions
void | usage (const char *cmd)
void | cleanup (mpg123_handle *mh, out123_handle *ao)
int | main (int argc, char *argv[])

## Detailed Description

A simple MPEG audio to WAV converter using libmpg123 (read) and libout123 (write). ...an excersize on two simple APIs.

Definition in file mpg123_to_out123.c.

## Function Documentation

## ◆ usage()

void usage | ( | const char * | cmd | ) |

Print usage info.

Definition at line 17 of file mpg123_to_out123.c.

## ◆ cleanup()

void cleanup | ( | mpg123_handle * | mh,
|  | out123_handle * | ao
| ) |  |

Free handles.

Definition at line 27 of file mpg123_to_out123.c.

## ◆ main()

int main | ( | int | argc,
|  | char * | argv[]
| ) |  |

The whole operation.

Definition at line 36 of file mpg123_to_out123.c.