Uses SDL to generate telephone-like sound tones on the fly.
More...
#include <beeper.h>
|
void | setEnabled (bool enabled) |
|
void | beep (qreal frequency, int duration) |
|
|
| Beeper () |
|
| ~Beeper () |
|
void | generateSamples (qint16 *stream, int length) |
|
|
bool | m_enabled |
|
double | m_angle |
|
Uses SDL to generate telephone-like sound tones on the fly.
Configures the audio spec
Stop using the SDL audio when destroying this class
void Beeper::beep |
( |
qreal |
frequency, |
|
|
int |
duration |
|
) |
| |
|
slot |
Generates a beep of the given frequency & duration (in milliseconds).
- Note
- The request will be ignored if the beeper is disabled
void Beeper::setEnabled |
( |
bool |
enabled | ) |
|
|
slot |
Enables or disables the sound output
The documentation for this class was generated from the following files: