#include <generator.hpp>
Public Member Functions | |
| void | start () |
| void | stop () |
| void | abort () |
| void | setFrequency (float freq) |
| float | getFrequency () const |
| void | setType (enum generatorType type) |
| enum generatorType | getType () const |
| void | setVolume (float volume) |
| float | getVolume () const |
| void | setVolumePercent (float volume) |
| float | getVolumePercent () const |
| void | setBalance (float balance) |
| float | getBalance () const |
Simple sinus generator at a specific frequency.
| float AL::Generator::getBalance | ( | ) | const |
| float AL::Generator::getFrequency | ( | ) | const |
Get the signal frequency.
| enum generatorType AL::Generator::getType | ( | ) | const |
Get the signal type.
| float AL::Generator::getVolume | ( | ) | const |
Get the current playing volume in dB.
| float AL::Generator::getVolumePercent | ( | ) | const |
Get the current playing volume in %.
| void AL::Generator::setBalance | ( | float | balance | ) |
Set the current Balance of the Playing file.
| [in] | balance | Balance value -1..1. |
| std::runtime_error | if out of range |
| void AL::Generator::setFrequency | ( | float | freq | ) |
Set the signal frequency.
| [in] | freq | New frequency to set [10..24k] |
| std::runtime_error | if out of range |
| void AL::Generator::setType | ( | enum generatorType | type | ) |
Set the signal type.
| [in] | type | New type to set. |
| std::runtime_error | if out of range |
| void AL::Generator::setVolume | ( | float | volume | ) |
Set the current volume of the player in dB.
| [in] | volume | Volume to set [-121..0] |
| std::runtime_error | if out of range |
| void AL::Generator::setVolumePercent | ( | float | volume | ) |
Set the current volume of the player in %.
| [in] | volume | Volume to set [0..100] |
| std::runtime_error | if out of range |