---
name: "audio2.h"
section: "3"
platform: "linux"
package: "libccaudio2-doc"
version: "1.0.0-2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/audio2.h"
---

# audio2.h(3)

Framework for portable audio processing and file handling classes.

## NAME

audio2.h - Framework for portable audio processing and file handling classes.

## SYNOPSIS

`#include <cstddef>`\
 `#include <cstdlib>`\
 `#include <sys/types.h>`\
 `#include <netinet/in.h>`\
 `#include <ctime>`\

### Namespaces

namespace **ost**\

### Classes

class **ost::Audio**\
 *Generic audio class to hold master data types and various useful class encapsulated friend functions as per GNU Common C++ 2 coding standard.*  struct **ost::Audio::goertzel\_state\_t**\
 struct **ost::Audio::dtmf\_detect\_state\_t**\
 struct **ost::Audio::tone\_detection\_descriptor\_t**\
 struct **ost::Audio::mpeg\_audio**\
 struct **ost::Audio::mpeg\_tagv1**\
 class **ost::Audio::Info**\
 **Audio** *source description.*  class **ost::AudioResample**\
 *The* **AudioResample** *class is used to manage linear intropolation buffering for rate conversions.*  class **ost::AudioTone**\
 *The* **AudioTone** *class is used to create a frame of audio encoded single or dualtones.*  class **ost::AudioBase**\
 **AudioBase** *base class for many other audio classes which stream data.*  class **ost::AudioBuffer**\
 *The* **AudioBuffer** *class is for mixing one-to-one soft joins.*  class **ost::AudioFile**\
 *A class used to manipulate audio data.*  class **ost::AudioStream**\
 **AudioStream** *accesses* **AudioFile** *base class content as fixed frames of streaming linear samples.*  class **ost::AudioCodec**\
 *The codec class is a virtual used for transcoding audio samples between linear frames (or other known format) and an encoded 'sample' buffer.*  class **ost::AudioDevice**\
 class **ost::TelTone**\
 *An object that is used to sequence and extract telephony tones based on a telephony tone descriptor retrieved from the parsed international telephony tone database.*  struct **ost::TelTone::\_tonedef**\
 struct **ost::TelTone::\_tonekey**\
 class **ost::DTMFTones**\
 **DTMFTones** *is used to generate a series of dtmf audio data from a 'telephone' number passed as an ASCII string.*  class **ost::MFTones**\
 **MFTones** *is used to generate a series of mf audio data from a 'telephone' number passed as an ASCII string.*  class **ost::DTMFDetect**\
 **DTMFDetect** *is used for detecting DTMF tones in a stream of audio.*

### Defines

\#define **CCXX\_PACKED**\
 \#define **AUDIO\_SIGNED\_LINEAR\_RAW**   1\
 \#define **AUDIO\_LINEAR\_CONVERSION**   1\
 \#define **AUDIO\_CODEC\_MODULES**   1\
 \#define **AUDIO\_LINEAR\_FRAMING**   1\
 \#define **AUDIO\_NATIVE\_METHODS**   1\
 \#define **AUDIO\_RATE\_RESAMPLER**   1\

## Detailed Description

Framework for portable audio processing and file handling classes.

## Define Documentation

### #define AUDIO\_CODEC\_MODULES 1

### #define AUDIO\_LINEAR\_CONVERSION 1

### #define AUDIO\_LINEAR\_FRAMING 1

### #define AUDIO\_NATIVE\_METHODS 1

### #define AUDIO\_RATE\_RESAMPLER 1

### #define AUDIO\_SIGNED\_LINEAR\_RAW 1

### #define CCXX\_PACKED

## Author

Generated automatically by Doxygen for ccAudio from the source code.
