#include <bayonne.h>
Public Methods | |
| phTone (const char *name, timeout_t duration, unsigned f) | |
| Create single frequency tone. More... | |
| phTone (const char *name, timeout_t duration, unsigned f1, unsigned f2) | |
| Create dual frequency tone. More... | |
| ~phTone () | |
| void | Clear (void) |
| If the telephony card is capable of generating it's own tones, then it can use the clear method to remove any allocated memory for sampled data. | |
| unsigned char* | getSamples (void) |
| Fetch the sample area of the tone. More... | |
| timeout_t | getDuration (void) |
| Get the duration of the tone. More... | |
Friends | |
| phTone* | getphTone (const char *name) |
Tones are defined in the "tones" section of bayonne.conf.
|
|
Create single frequency tone.
|
|
|
Create dual frequency tone.
|
|
|
|
|
|
If the telephony card is capable of generating it's own tones, then it can use the clear method to remove any allocated memory for sampled data.
|
|
|
Get the duration of the tone.
|
|
|
Fetch the sample area of the tone.
|
|
|
|
1.2.1 written by Dimitri van Heesch,
© 1997-2000