---
name: "AudioSample"
section: "3cc"
platform: "linux"
package: "libccaudio-dev"
version: "1.2.0-1+b1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/AudioSample/3cc"
---

# AudioSample(3cc)

This class is use to represent and process audio data held in memory.audio data in memory.

## NAME

AudioSample - This class is use to represent and process audio data held in memory.audio data in memory.

## SYNOPSIS

`#include <audio.h>`

Inherits **Audio**.

Inherited by **AudioCopy**, **AudioTone**, and **LinearSample**.

### Public Member Functions

**AudioSample** (unsigned frame, Encoding coding=pcm16Mono, unsigned rate=8000)\
 unsigned **getCount** (void)\
 unsigned **getRate** (void)\
 Encoding **getEncoding** (void)\
 unsigned char \* **getSamples** (void)\

### Protected Attributes

Encoding **encoding**\
 unsigned **rate**\
 unsigned **count**\
 unsigned char \* **samples**\

### Friends

class **AudioCopy**\

## Detailed Description

This class is use to represent and process audio data held in memory.audio data in memory.

**Author:**

David Sugar \<dyfet@ostel.com\>

## Author

Generated automatically by Doxygen for ccAudio from the source code.
