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

# ost\_AudioResample(3)

The AudioResample class is used to manage linear intropolation buffering for rate conversions.

## NAME

ost::AudioResample - The **AudioResample** class is used to manage linear intropolation buffering for rate conversions.

## SYNOPSIS

`#include <audio2.h>`

Inherits **ost::Audio**.

### Public Member Functions

**AudioResample** (**Rate** mul, **Rate** div)\
 **~AudioResample** ()\
 size\_t **process** (**Linear** from, **Linear** to, size\_t count)\
 size\_t **estimate** (size\_t count)\

### Protected Attributes

unsigned **mfact**\
 unsigned **dfact**\
 unsigned **max**\
 unsigned **gpos**\
 unsigned **ppos**\
 **Sample** **last**\
 **Linear** **buffer**\

## Detailed Description

The **AudioResample** class is used to manage linear intropolation buffering for rate conversions.

**Author:**

David Sugar \<dyfet@ostel.com\> linear intropolation and rate conversion.

## Constructor & Destructor Documentation

### ost::AudioResample::AudioResample (Rate mul, Rate div)

### ost::AudioResample::~AudioResample ()

## Member Function Documentation

### size\_t ost::AudioResample::process (Linear from, Linear to, size\_t count)

### size\_t ost::AudioResample::estimate (size\_t count)

## Member Data Documentation

### unsigned ost::AudioResample::mfact` [protected]`

### unsigned ost::AudioResample::dfact` [protected]`

### unsigned ost::AudioResample::max` [protected]`

### unsigned ost::AudioResample::gpos` [protected]`

### unsigned ost::AudioResample::ppos` [protected]`

### Sample ost::AudioResample::last` [protected]`

### Linear ost::AudioResample::buffer` [protected]`

## Author

Generated automatically by Doxygen for ccAudio from the source code.
