A class that hosts an IPlug as a standalone app and provides Audio/Midi I/O.
More...
#include <IPlugAPP_host.h>
|
void | PopulateSampleRateList (HWND hwndDlg, RtAudio::DeviceInfo *pInputDevInfo, RtAudio::DeviceInfo *pOutputDevInfo) |
|
void | PopulateAudioInputList (HWND hwndDlg, RtAudio::DeviceInfo *pInfo) |
|
void | PopulateAudioOutputList (HWND hwndDlg, RtAudio::DeviceInfo *pInfo) |
|
void | PopulateDriverSpecificControls (HWND hwndDlg) |
|
void | PopulateAudioDialogs (HWND hwndDlg) |
|
bool | PopulateMidiDialogs (HWND hwndDlg) |
|
void | PopulatePreferencesDialog (HWND hwndDlg) |
|
bool | OpenWindow (HWND pParent) |
|
void | CloseWindow () |
|
bool | Init () |
|
bool | InitState () |
|
void | UpdateINI () |
|
std::string | GetAudioDeviceName (int idx) const |
| Returns the name of the audio device at idx. More...
|
|
int | GetAudioDeviceIdx (const char *name) const |
| Returns the audio device index linked to a particular name. More...
|
|
int | GetMIDIPortNumber (ERoute direction, const char *name) const |
|
void | ProbeAudioIO () |
| find out which devices have input channels & which have output channels, add their ids to the lists More...
|
|
void | ProbeMidiIO () |
|
bool | InitMidi () |
|
void | CloseAudio () |
|
bool | InitAudio (uint32_t inId, uint32_t outId, uint32_t sr, uint32_t iovs) |
|
bool | AudioSettingsInStateAreEqual (AppState &os, AppState &ns) |
|
bool | MIDISettingsInStateAreEqual (AppState &os, AppState &ns) |
|
bool | TryToChangeAudioDriverType () |
|
bool | TryToChangeAudio () |
|
bool | SelectMIDIDevice (ERoute direction, const char *portName) |
|
IPlugAPP * | GetPlug () |
|
|
static IPlugAPPHost * | Create () |
|
static int | AudioCallback (void *pOutputBuffer, void *pInputBuffer, uint32_t nFrames, double streamTime, RtAudioStreamStatus status, void *pUserData) |
|
static void | MIDICallback (double deltatime, std::vector< uint8_t > *pMsg, void *pUserData) |
|
static void | ErrorCallback (RtAudioError::Type type, const std::string &errorText) |
|
static WDL_DLGRET | PreferencesDlgProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
|
static WDL_DLGRET | MainDlgProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) |
|
A class that hosts an IPlug as a standalone app and provides Audio/Midi I/O.
Definition at line 81 of file IPlugAPP_host.h.
◆ IPlugAPPHost()
IPlugAPPHost::IPlugAPPHost |
( |
| ) |
|
◆ ~IPlugAPPHost()
IPlugAPPHost::~IPlugAPPHost |
( |
| ) |
|
◆ AudioCallback()
int IPlugAPPHost::AudioCallback |
( |
void * |
pOutputBuffer, |
|
|
void * |
pInputBuffer, |
|
|
uint32_t |
nFrames, |
|
|
double |
streamTime, |
|
|
RtAudioStreamStatus |
status, |
|
|
void * |
pUserData |
|
) |
| |
|
static |
◆ AudioSettingsInStateAreEqual()
bool IPlugAPPHost::AudioSettingsInStateAreEqual |
( |
AppState & |
os, |
|
|
AppState & |
ns |
|
) |
| |
◆ CloseAudio()
void IPlugAPPHost::CloseAudio |
( |
| ) |
|
◆ CloseWindow()
void IPlugAPPHost::CloseWindow |
( |
| ) |
|
◆ Create()
◆ ErrorCallback()
void IPlugAPPHost::ErrorCallback |
( |
RtAudioError::Type |
type, |
|
|
const std::string & |
errorText |
|
) |
| |
|
static |
◆ GetAudioDeviceIdx()
int IPlugAPPHost::GetAudioDeviceIdx |
( |
const char * |
name | ) |
const |
Returns the audio device index linked to a particular name.
- Parameters
-
name | The name of the audio device to test |
- Returns
- The integer index RTAudio has given the audio device
Definition at line 207 of file IPlugAPP_host.cpp.
◆ GetAudioDeviceName()
std::string IPlugAPPHost::GetAudioDeviceName |
( |
int |
idx | ) |
const |
Returns the name of the audio device at idx.
- Parameters
-
idx | The index RTAudio has given the audio device |
- Returns
- The device name. Core Audio device names are truncated.
Definition at line 202 of file IPlugAPP_host.cpp.
◆ GetMIDIPortNumber()
int IPlugAPPHost::GetMIDIPortNumber |
( |
ERoute |
direction, |
|
|
const char * |
name |
|
) |
| const |
- Parameters
-
direction | Either kInput or kOutput |
name | The name of the midi device |
- Returns
- An integer specifying the output port number, where 0 means any
Definition at line 218 of file IPlugAPP_host.cpp.
◆ GetPlug()
◆ Init()
bool IPlugAPPHost::Init |
( |
| ) |
|
◆ InitAudio()
bool IPlugAPPHost::InitAudio |
( |
uint32_t |
inId, |
|
|
uint32_t |
outId, |
|
|
uint32_t |
sr, |
|
|
uint32_t |
iovs |
|
) |
| |
◆ InitMidi()
bool IPlugAPPHost::InitMidi |
( |
| ) |
|
◆ InitState()
bool IPlugAPPHost::InitState |
( |
| ) |
|
◆ MainDlgProc()
WDL_DLGRET IPlugAPPHost::MainDlgProc |
( |
HWND |
hwndDlg, |
|
|
UINT |
uMsg, |
|
|
WPARAM |
wParam, |
|
|
LPARAM |
lParam |
|
) |
| |
|
static |
◆ MIDICallback()
void IPlugAPPHost::MIDICallback |
( |
double |
deltatime, |
|
|
std::vector< uint8_t > * |
pMsg, |
|
|
void * |
pUserData |
|
) |
| |
|
static |
◆ MIDISettingsInStateAreEqual()
◆ OpenWindow()
bool IPlugAPPHost::OpenWindow |
( |
HWND |
pParent | ) |
|
◆ PopulateAudioDialogs()
void IPlugAPPHost::PopulateAudioDialogs |
( |
HWND |
hwndDlg | ) |
|
◆ PopulateAudioInputList()
void IPlugAPPHost::PopulateAudioInputList |
( |
HWND |
hwndDlg, |
|
|
RtAudio::DeviceInfo * |
pInfo |
|
) |
| |
◆ PopulateAudioOutputList()
void IPlugAPPHost::PopulateAudioOutputList |
( |
HWND |
hwndDlg, |
|
|
RtAudio::DeviceInfo * |
pInfo |
|
) |
| |
◆ PopulateDriverSpecificControls()
void IPlugAPPHost::PopulateDriverSpecificControls |
( |
HWND |
hwndDlg | ) |
|
◆ PopulateMidiDialogs()
bool IPlugAPPHost::PopulateMidiDialogs |
( |
HWND |
hwndDlg | ) |
|
◆ PopulateSampleRateList()
void IPlugAPPHost::PopulateSampleRateList |
( |
HWND |
hwndDlg, |
|
|
RtAudio::DeviceInfo * |
pInputDevInfo, |
|
|
RtAudio::DeviceInfo * |
pOutputDevInfo |
|
) |
| |
◆ PreferencesDlgProc()
WDL_DLGRET IPlugAPPHost::PreferencesDlgProc |
( |
HWND |
hwndDlg, |
|
|
UINT |
uMsg, |
|
|
WPARAM |
wParam, |
|
|
LPARAM |
lParam |
|
) |
| |
|
static |
◆ ProbeAudioIO()
void IPlugAPPHost::ProbeAudioIO |
( |
| ) |
|
find out which devices have input channels & which have output channels, add their ids to the lists
Definition at line 256 of file IPlugAPP_host.cpp.
◆ ProbeMidiIO()
void IPlugAPPHost::ProbeMidiIO |
( |
| ) |
|
◆ SelectMIDIDevice()
bool IPlugAPPHost::SelectMIDIDevice |
( |
ERoute |
direction, |
|
|
const char * |
portName |
|
) |
| |
◆ TryToChangeAudio()
bool IPlugAPPHost::TryToChangeAudio |
( |
| ) |
|
◆ TryToChangeAudioDriverType()
bool IPlugAPPHost::TryToChangeAudioDriverType |
( |
| ) |
|
◆ UpdateINI()
void IPlugAPPHost::UpdateINI |
( |
| ) |
|
◆ IPlugAPP
◆ sInstance
The documentation for this class was generated from the following files: