#include <AudioControl.h>
Public Member Functions | |
| AudioControl (bool, bool, bool) | |
| AudioControl Constructor. | |
| void | setJackSetup (bool) |
| Setters and Getters. | |
| void | setLibPdSetup (bool) |
| void | setLibPdInit (bool) |
| bool | getJackSetup () |
| bool | getLibPdSetup () |
| bool | getLibPdInit () |
| int | setupJack () |
| Setup Jack. | |
| void | initLibPD () |
| Init LibPd. | |
| int | setupLibPD () |
| Setup LibPd. | |
| std::string * | convertString (std::string) |
| Convert String. | |
| int | enablePatch (std::string *) |
| Enable Patch. | |
| int | disablePatch (std::string *) |
| Disable Patch. | |
| void | startPatch (std::string *) |
| Start Patch. | |
| void | stopPatch () |
| Stop Patch. | |
| std::string * | getPatch () |
| Get Patch. | |
| void | selectPatch (std::string *) |
| Select Patch. | |
| void | adjustDial (float, std::string) |
| Adjust Dial. | |
This class provides the interface of communication between LibPd/Jack and the presentation layer.
| AudioControl::AudioControl | ( | bool | jackSetup, |
| bool | libPdSetup, | ||
| bool | libPdInit | ||
| ) |
AudioControl Constructor.
The AudioControl constructor expects params jackSetup, libPdSetup, libPdInit
| void AudioControl::adjustDial | ( | float | , |
| std::string | |||
| ) |
Adjust Dial.
Controls volume and strength parameters and sends the corresponding dial values to the LibPd class
| string * AudioControl::convertString | ( | std::string | ) |
Convert String.
Simply converts a string to a string pointer
| int AudioControl::disablePatch | ( | std::string * | ) |
Disable Patch.
Disables the provided patch and sets patch state disabled
| int AudioControl::enablePatch | ( | std::string * | ) |
Enable Patch.
Enables the provided patch through functionality in LibPd class, sets the patch object to enabled state
| string * AudioControl::getPatch | ( | ) |
Get Patch.
Simply tells which patch is running
| void AudioControl::initLibPD | ( | ) |
Init LibPd.
Initializes LibPd through functions provided by the LibPd class and sets libPdInit = true
| void AudioControl::selectPatch | ( | std::string * | ) |
Select Patch.
Tells the program which patch to run
| void AudioControl::setJackSetup | ( | bool | jackSetup | ) |
Setters and Getters.
These setters and getters are used to manage the state of AudioControl
| int AudioControl::setupJack | ( | ) |
| int AudioControl::setupLibPD | ( | ) |
Setup LibPd.
Sets LibPd running and libPdInit = true
| void AudioControl::startPatch | ( | std::string * | ) |
Start Patch.
Start the provided patch and set patch state active
| void AudioControl::stopPatch | ( | ) |
Stop Patch.
Stops playback and set patch state inactive
1.7.3