---
name: "ost_MFTones"
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_MFTones"
---

# ost\_MFTones(3)

MFTones is used to generate a series of mf audio data from a 'telephone' number passed as an ASCII string.

## NAME

ost::MFTones - **MFTones** is used to generate a series of mf audio data from a 'telephone' number passed as an ASCII string.

## SYNOPSIS

`#include <audio2.h>`

Inherits **ost::AudioTone**.

### Public Member Functions

**MFTones** (const char \***digits**, **Level** **level**, **timeout\_t** duration=20, **timeout\_t** interdigit=60)\
 *Generate a mf dialer for a specified dialing string.*  **~MFTones** ()\
 **Linear** **getFrame** (void)\
 bool **isComplete** (void)\

### Protected Attributes

unsigned **remaining**\
 unsigned **mfframes**\
 **timeout\_t** **frametime**\
 const char \* **digits**\
 **Level** **level**\
 bool **complete**\
 bool **kflag**\

## Detailed Description

**MFTones** is used to generate a series of mf audio data from a 'telephone' number passed as an ASCII string.

Each time **getFrame()** is called, the next audio frame of dtmf audio will be created and pulled.

**Author:**

David Sugar \<dyfet@ostel.com\> Generate MF audio

## Constructor & Destructor Documentation

### ost::MFTones::MFTones (const char \* digits, Level level, timeout\_t duration = `20`, timeout\_t interdigit = `60`)

Generate a mf dialer for a specified dialing string.

**Parameters:**

*digits* to generate tone dialing for. \
 *level* for mf. \
 *duration* timing for generated audio. \
 *interdigit* timing, should be multiple of frame.

### ost::MFTones::~MFTones ()

## Member Function Documentation

### Linear ost::MFTones::getFrame (void)` [virtual]`

Reimplemented from **ost::AudioTone**.

### bool ost::MFTones::isComplete (void)` [virtual]`

Reimplemented from **ost::AudioTone**.

## Member Data Documentation

### unsigned ost::MFTones::remaining` [protected]`

### unsigned ost::MFTones::mfframes` [protected]`

### timeout\_t ost::MFTones::frametime` [protected]`

### const char\* ost::MFTones::digits` [protected]`

### Level ost::MFTones::level` [protected]`

### bool ost::MFTones::complete` [protected]`

### bool ost::MFTones::kflag` [protected]`

## Author

Generated automatically by Doxygen for ccAudio from the source code.
