# Libcallaudio Overview

## Introduction

The purpose of libcallaudio is to make it simple for other applications to control audio routing and other audio related settings in mobile phone scenarios.

&package; provides synchronous and asynchronous APIs to switch audio profiles, change between the earpiece and the speakers and mute the microphone.

## Compiling libcallaudio applications

### Using pkg-config

Like other GNOME libraries, &package_string; uses pkg-config to provide compiler options. The package name is "`&package_ver_str;`". So in your `configure.ac` script, you might specify something like:

    	PKG_CHECK_MODULES(LIBFEEDBACK, [&package_string;-&package_api_version;])
    	AC_SUBST(LIBFEEDBACK_CFLAGS)
    	AC_SUBST(LIBFEEDBACK_LIBS)

### Using Meson/Ninja

If using Meson/Ninja use a `dependency('&package_string;-&package_api_version;')` dependency.

The "`&package_api_version;`" in the package name is the "API version" (indicating "the version of the &package_string; API that first appeared in version &package_api_version;") and is essentially just part of the package name.