Added: Voicemeeter audio processing support. When Voicemeeter is installed, it can be selected in the Configurator.
This commit is contained in:
1 parent
46d921945f
commit
989812ba36
55 files changed
+3044
-278
No files matched your search
@@ -0,0 +1,266 @@
|
||||
#include "stdafx.h"
|
||||
#include <string>
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <shellapi.h>
|
||||
#include "helpers/RegistryHelper.h"
|
||||
#include "VoicemeeterClient.h"
|
||||
#include "VoicemeeterAPOInfo.h"
|
||||
|
||||
#define voicemeeterKeyPath L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\VB:Voicemeeter {17359A74-1236-5467}"
|
||||
#define voicemeeterWowKeyPath L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\VB:Voicemeeter {17359A74-1236-5467}"
|
||||
#define uninstallStringValueName L"UninstallString"
|
||||
|
||||
using namespace std;
|
||||
|
||||
long __stdcall callback(void* lpUser, long nCommand, void* lpData, long nnn);
|
||||
|
||||
int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
|
||||
_In_opt_ HINSTANCE hPrevInstance,
|
||||
_In_ LPTSTR lpCmdLine,
|
||||
_In_ int nCmdShow)
|
||||
{
|
||||
vector<wstring> outputs;
|
||||
if (lpCmdLine[0] != 0)
|
||||
{
|
||||
int argc;
|
||||
wchar_t** argv = CommandLineToArgvW(lpCmdLine, &argc);
|
||||
for (int i = 0; i < argc; i++)
|
||||
outputs.push_back(argv[i]);
|
||||
LocalFree(argv);
|
||||
}
|
||||
|
||||
VoicemeeterClient* client = new VoicemeeterClient(outputs);
|
||||
|
||||
MSG msg;
|
||||
msg.wParam = 0;
|
||||
|
||||
bool loop = client->restart;
|
||||
while (loop)
|
||||
{
|
||||
client->start();
|
||||
client->restart = false;
|
||||
|
||||
while (GetMessage(&msg, NULL, 0, 0))
|
||||
{
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
}
|
||||
|
||||
loop = client->restart;
|
||||
|
||||
client->stop();
|
||||
}
|
||||
delete client;
|
||||
|
||||
return (int)msg.wParam;
|
||||
}
|
||||
|
||||
VoicemeeterClient::VoicemeeterClient(const vector<wstring>& outputs)
|
||||
: outputs(outputs)
|
||||
{
|
||||
mainThreadId = GetCurrentThreadId();
|
||||
|
||||
wstring voicemeeterDirectory;
|
||||
if (RegistryHelper::keyExists(voicemeeterKeyPath))
|
||||
voicemeeterDirectory = RegistryHelper::readValue(voicemeeterKeyPath, uninstallStringValueName);
|
||||
else if (RegistryHelper::keyExists(voicemeeterWowKeyPath))
|
||||
voicemeeterDirectory = RegistryHelper::readValue(voicemeeterWowKeyPath, uninstallStringValueName);
|
||||
|
||||
size_t index = voicemeeterDirectory.find_last_of(L'\\');
|
||||
HMODULE voicemeeterModule = NULL;
|
||||
|
||||
if (index != wstring::npos)
|
||||
{
|
||||
wstring setupFilename = voicemeeterDirectory.substr(index + 1);
|
||||
banana = (setupFilename == L"VoicemeeterProSetup.exe");
|
||||
|
||||
voicemeeterDirectory = voicemeeterDirectory.substr(0, index);
|
||||
|
||||
#ifdef _WIN64
|
||||
voicemeeterModule = LoadLibraryW((voicemeeterDirectory + L"\\VoicemeeterRemote64.dll").c_str());
|
||||
#else
|
||||
voicemeeterModule = LoadLibraryW((voicemeeterDirectory + L"\\VoicemeeterRemote.dll").c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
memset(&vmr, 0, sizeof(T_VBVMR_INTERFACE));
|
||||
#define LOAD_PROC(proc) vmr.proc = (T_ ## proc)GetProcAddress(voicemeeterModule, # proc)
|
||||
if (voicemeeterModule != NULL)
|
||||
{
|
||||
LOAD_PROC(VBVMR_Login);
|
||||
LOAD_PROC(VBVMR_Logout);
|
||||
LOAD_PROC(VBVMR_AudioCallbackRegister);
|
||||
LOAD_PROC(VBVMR_AudioCallbackStart);
|
||||
LOAD_PROC(VBVMR_AudioCallbackStop);
|
||||
LOAD_PROC(VBVMR_AudioCallbackUnregister);
|
||||
LOAD_PROC(VBVMR_GetVoicemeeterType);
|
||||
|
||||
restart = true;
|
||||
}
|
||||
}
|
||||
|
||||
VoicemeeterClient::~VoicemeeterClient()
|
||||
{
|
||||
if (loggedIn)
|
||||
{
|
||||
vmr.VBVMR_Logout();
|
||||
loggedIn = false;
|
||||
}
|
||||
}
|
||||
|
||||
void VoicemeeterClient::start()
|
||||
{
|
||||
if (!loggedIn)
|
||||
loggedIn = (vmr.VBVMR_Login() == 0);
|
||||
|
||||
if (loggedIn)
|
||||
{
|
||||
long type;
|
||||
if (vmr.VBVMR_GetVoicemeeterType(&type) == 0)
|
||||
banana = (type == 2);
|
||||
}
|
||||
|
||||
unsigned outputCount;
|
||||
if (banana)
|
||||
outputCount = 3;
|
||||
else
|
||||
outputCount = 1;
|
||||
|
||||
for (unsigned i = 0; i < outputCount; i++)
|
||||
{
|
||||
wstringstream sstream;
|
||||
sstream << "Output A" << (i + 1);
|
||||
wstring output = sstream.str();
|
||||
if (find(outputs.begin(), outputs.end(), output) != outputs.end())
|
||||
{
|
||||
FilterEngine* engine = new FilterEngine();
|
||||
engine->setDeviceInfo(false, true, L"Voicemeeter", output, L"", L"Voicemeeter " + output);
|
||||
engines.push_back(engine);
|
||||
}
|
||||
else
|
||||
{
|
||||
engines.push_back(NULL);
|
||||
}
|
||||
|
||||
idleSampleCounts.push_back(0);
|
||||
}
|
||||
|
||||
if (vmr.VBVMR_AudioCallbackRegister(VBVMR_AUDIOCALLBACK_OUT, callback, this, "Equalizer APO") != 0)
|
||||
{
|
||||
PostThreadMessage(mainThreadId, WM_QUIT, 0, 0);
|
||||
return;
|
||||
}
|
||||
vmr.VBVMR_AudioCallbackStart();
|
||||
}
|
||||
|
||||
void VoicemeeterClient::stop()
|
||||
{
|
||||
vmr.VBVMR_AudioCallbackStop();
|
||||
vmr.VBVMR_AudioCallbackUnregister();
|
||||
|
||||
idleSampleCounts.clear();
|
||||
for (FilterEngine* engine : engines)
|
||||
if (engine != NULL)
|
||||
delete engine;
|
||||
engines.clear();
|
||||
}
|
||||
|
||||
void VoicemeeterClient::handle(long nCommand, void* lpData, long nnn)
|
||||
{
|
||||
switch (nCommand)
|
||||
{
|
||||
case VBVMR_CBCOMMAND_STARTING:
|
||||
{
|
||||
VBVMR_LPT_AUDIOINFO audioInfo = (VBVMR_LPT_AUDIOINFO)lpData;
|
||||
for (FilterEngine* engine : engines)
|
||||
if (engine != NULL)
|
||||
engine->initialize((float)audioInfo->samplerate, 8, 8, 8, 0, audioInfo->nbSamplePerFrame);
|
||||
VoicemeeterAPOInfo::saveVoicemeeterSampleRate((unsigned)audioInfo->samplerate);
|
||||
}
|
||||
break;
|
||||
case VBVMR_CBCOMMAND_ENDING:
|
||||
{
|
||||
restart = true;
|
||||
PostThreadMessage(mainThreadId, WM_QUIT, 0, 0);
|
||||
}
|
||||
break;
|
||||
case VBVMR_CBCOMMAND_CHANGE:
|
||||
{
|
||||
VBVMR_LPT_AUDIOINFO audioInfo = (VBVMR_LPT_AUDIOINFO)lpData;
|
||||
for (FilterEngine* engine : engines)
|
||||
if (engine != NULL)
|
||||
engine->initialize((float)audioInfo->samplerate, 8, 8, 8, 0, audioInfo->nbSamplePerFrame);
|
||||
VoicemeeterAPOInfo::saveVoicemeeterSampleRate((unsigned)audioInfo->samplerate);
|
||||
}
|
||||
break;
|
||||
case VBVMR_CBCOMMAND_BUFFER_OUT:
|
||||
{
|
||||
VBVMR_LPT_AUDIOBUFFER audioBuffer = (VBVMR_LPT_AUDIOBUFFER)lpData;
|
||||
int nbi = audioBuffer->audiobuffer_nbi;
|
||||
int nbo = audioBuffer->audiobuffer_nbo;
|
||||
int n = min(nbi, nbo) / 8;
|
||||
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
FilterEngine* engine = NULL;
|
||||
if (i < engines.size())
|
||||
engine = engines[i];
|
||||
|
||||
bool idle = true;
|
||||
bool inputSilent = true;
|
||||
if (engine != NULL)
|
||||
{
|
||||
inputSilent = isBufferSilent(audioBuffer->audiobuffer_r + 8 * i, audioBuffer->audiobuffer_nbs);
|
||||
idle = inputSilent && idleSampleCounts[i] > 10 * engine->getSampleRate();
|
||||
}
|
||||
|
||||
// avoid processing when idle (Voicemeeter does still call this when no audio is played)
|
||||
if (!idle)
|
||||
{
|
||||
engine->process(audioBuffer->audiobuffer_w + 8 * i, audioBuffer->audiobuffer_r + 8 * i, audioBuffer->audiobuffer_nbs);
|
||||
|
||||
bool outputSilent = isBufferSilent(audioBuffer->audiobuffer_w + 8 * i, audioBuffer->audiobuffer_nbs);
|
||||
if (inputSilent && outputSilent)
|
||||
idleSampleCounts[i] += audioBuffer->audiobuffer_nbs;
|
||||
else
|
||||
idleSampleCounts[i] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int j = 0; j < 8; j++)
|
||||
memcpy(audioBuffer->audiobuffer_w[8 * i + j], audioBuffer->audiobuffer_r[8 * i + j], audioBuffer->audiobuffer_nbs * sizeof(float));
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
bool VoicemeeterClient::isBufferSilent(float** sampleData, long sampleCount)
|
||||
{
|
||||
bool silent = true;
|
||||
|
||||
for (int j = 0; j < 8; j++)
|
||||
{
|
||||
float* buf = sampleData[j];
|
||||
for (int k = 0; k < sampleCount; k++)
|
||||
{
|
||||
if (buf[k] != 0.0f)
|
||||
{
|
||||
silent = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return silent;
|
||||
}
|
||||
|
||||
long __stdcall callback(void* lpUser, long nCommand, void* lpData, long nnn)
|
||||
{
|
||||
VoicemeeterClient* client = (VoicemeeterClient*)lpUser;
|
||||
client->handle(nCommand, lpData, nnn);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "FilterEngine.h"
|
||||
#include "VoicemeeterRemote.h"
|
||||
|
||||
class VoicemeeterClient
|
||||
{
|
||||
public:
|
||||
VoicemeeterClient(const std::vector<std::wstring>& outputs);
|
||||
~VoicemeeterClient();
|
||||
void start();
|
||||
void stop();
|
||||
|
||||
void handle(long nCommand, void* lpData, long nnn);
|
||||
bool restart = false;
|
||||
|
||||
private:
|
||||
bool isBufferSilent(float** sampleData, long sampleCount);
|
||||
|
||||
unsigned long mainThreadId;
|
||||
T_VBVMR_INTERFACE vmr;
|
||||
std::vector<FilterEngine*> engines;
|
||||
std::vector<int> idleSampleCounts;
|
||||
bool loggedIn = false;
|
||||
bool banana = false;
|
||||
std::vector<std::wstring> outputs;
|
||||
};
|
||||
Binary file not shown.
@@ -0,0 +1,249 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{10F1DD37-EA50-46C2-810D-D01A1A0D4D2F}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>VoicemeeterClient</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<IncludePath>$(SolutionDir);C:\Program Files\libsndfile\include;C:\Program Files\muparserx_v3_0_1\parser;C:\Program Files (x86)\fftw3;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>C:\Program Files (x86)\libsndfile\lib;C:\Program Files\muparserx_v3_0_1\lib;C:\Program Files (x86)\fftw3;$(LibraryPath)</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<IncludePath>$(SolutionDir);C:\Program Files\libsndfile\include;C:\Program Files\muparserx_v3_0_1\parser;C:\Program Files\fftw3;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>C:\Program Files\libsndfile\lib;C:\Program Files\muparserx_v3_0_1\lib64;C:\Program Files\fftw3;$(LibraryPath)</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<IncludePath>$(SolutionDir);C:\Program Files\libsndfile\include;C:\Program Files\muparserx_v3_0_1\parser;C:\Program Files (x86)\fftw3;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>C:\Program Files (x86)\libsndfile\lib;C:\Program Files\muparserx_v3_0_1\lib;C:\Program Files (x86)\fftw3;$(LibraryPath)</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<IncludePath>$(SolutionDir);C:\Program Files\libsndfile\include;C:\Program Files\muparserx_v3_0_1\parser;C:\Program Files\fftw3;$(IncludePath)</IncludePath>
|
||||
<LibraryPath>C:\Program Files\libsndfile\lib;C:\Program Files\muparserx_v3_0_1\lib64;C:\Program Files\fftw3;$(LibraryPath)</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalDependencies>muparserxd.lib;version.lib;Shlwapi.lib;authz.lib;libsndfile-1.lib;libfftw3f-3.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalDependencies>muparserxd.lib;version.lib;Shlwapi.lib;authz.lib;libsndfile-1.lib;libfftw3f-3.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<FloatingPointModel>Fast</FloatingPointModel>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalDependencies>muparserx.lib;version.lib;Shlwapi.lib;authz.lib;libsndfile-1.lib;libfftw3f-3.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<FloatingPointModel>Fast</FloatingPointModel>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<AdditionalDependencies>muparserx.lib;version.lib;Shlwapi.lib;authz.lib;libsndfile-1.lib;libfftw3f-3.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\..\..\Users\Jonas\Downloads\VoicemeeterRemoteAPI_Pack6\VoicemeeterRemote.h" />
|
||||
<ClInclude Include="..\AbstractAPOInfo.h" />
|
||||
<ClInclude Include="..\FilterConfiguration.h" />
|
||||
<ClInclude Include="..\FilterEngine.h" />
|
||||
<ClInclude Include="..\filters\BiQuad.h" />
|
||||
<ClInclude Include="..\filters\BiQuadFilter.h" />
|
||||
<ClInclude Include="..\filters\BiQuadFilterFactory.h" />
|
||||
<ClInclude Include="..\filters\ChannelFilter.h" />
|
||||
<ClInclude Include="..\filters\ChannelFilterFactory.h" />
|
||||
<ClInclude Include="..\filters\ConvolutionFilter.h" />
|
||||
<ClInclude Include="..\filters\ConvolutionFilterFactory.h" />
|
||||
<ClInclude Include="..\filters\CopyFilter.h" />
|
||||
<ClInclude Include="..\filters\CopyFilterFactory.h" />
|
||||
<ClInclude Include="..\filters\DelayFilter.h" />
|
||||
<ClInclude Include="..\filters\DelayFilterFactory.h" />
|
||||
<ClInclude Include="..\filters\DeviceFilterFactory.h" />
|
||||
<ClInclude Include="..\filters\ExpressionFilterFactory.h" />
|
||||
<ClInclude Include="..\filters\GraphicEQFilter.h" />
|
||||
<ClInclude Include="..\filters\GraphicEQFilterFactory.h" />
|
||||
<ClInclude Include="..\filters\IfFilterFactory.h" />
|
||||
<ClInclude Include="..\filters\IIRFilter.h" />
|
||||
<ClInclude Include="..\filters\IIRFilterFactory.h" />
|
||||
<ClInclude Include="..\filters\IncludeFilterFactory.h" />
|
||||
<ClInclude Include="..\filters\PreampFilter.h" />
|
||||
<ClInclude Include="..\filters\PreampFilterFactory.h" />
|
||||
<ClInclude Include="..\filters\StageFilterFactory.h" />
|
||||
<ClInclude Include="..\helpers\ChannelHelper.h" />
|
||||
<ClInclude Include="..\helpers\GainIterator.h" />
|
||||
<ClInclude Include="..\helpers\LogHelper.h" />
|
||||
<ClInclude Include="..\helpers\MemoryHelper.h" />
|
||||
<ClInclude Include="..\helpers\RegistryHelper.h" />
|
||||
<ClInclude Include="..\helpers\ScopeGuard.h" />
|
||||
<ClInclude Include="..\helpers\StringHelper.h" />
|
||||
<ClInclude Include="..\helpers\UncaughtExceptions.h" />
|
||||
<ClInclude Include="..\IFilter.h" />
|
||||
<ClInclude Include="..\IFilterFactory.h" />
|
||||
<ClInclude Include="..\libHybridConv-0.1.1\libHybridConv_eapo.h" />
|
||||
<ClInclude Include="..\parser\RegexFunctions.h" />
|
||||
<ClInclude Include="..\parser\RegistryFunctions.h" />
|
||||
<ClInclude Include="..\parser\StringOperators.h" />
|
||||
<ClInclude Include="..\stdafx.h" />
|
||||
<ClInclude Include="..\VoicemeeterAPOInfo.h" />
|
||||
<ClInclude Include="resource.h" />
|
||||
<ClInclude Include="VoicemeeterClient.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\AbstractAPOInfo.cpp" />
|
||||
<ClCompile Include="..\FilterConfiguration.cpp" />
|
||||
<ClCompile Include="..\FilterEngine.cpp" />
|
||||
<ClCompile Include="..\filters\BiQuad.cpp" />
|
||||
<ClCompile Include="..\filters\BiQuadFilter.cpp" />
|
||||
<ClCompile Include="..\filters\BiQuadFilterFactory.cpp" />
|
||||
<ClCompile Include="..\filters\ChannelFilter.cpp" />
|
||||
<ClCompile Include="..\filters\ChannelFilterFactory.cpp" />
|
||||
<ClCompile Include="..\filters\ConvolutionFilter.cpp" />
|
||||
<ClCompile Include="..\filters\ConvolutionFilterFactory.cpp" />
|
||||
<ClCompile Include="..\filters\CopyFilter.cpp" />
|
||||
<ClCompile Include="..\filters\CopyFilterFactory.cpp" />
|
||||
<ClCompile Include="..\filters\DelayFilter.cpp" />
|
||||
<ClCompile Include="..\filters\DelayFilterFactory.cpp" />
|
||||
<ClCompile Include="..\filters\DeviceFilterFactory.cpp" />
|
||||
<ClCompile Include="..\filters\ExpressionFilterFactory.cpp" />
|
||||
<ClCompile Include="..\filters\GraphicEQFilter.cpp" />
|
||||
<ClCompile Include="..\filters\GraphicEQFilterFactory.cpp" />
|
||||
<ClCompile Include="..\filters\IfFilterFactory.cpp" />
|
||||
<ClCompile Include="..\filters\IIRFilter.cpp" />
|
||||
<ClCompile Include="..\filters\IIRFilterFactory.cpp" />
|
||||
<ClCompile Include="..\filters\IncludeFilterFactory.cpp" />
|
||||
<ClCompile Include="..\filters\PreampFilter.cpp" />
|
||||
<ClCompile Include="..\filters\PreampFilterFactory.cpp" />
|
||||
<ClCompile Include="..\filters\StageFilterFactory.cpp" />
|
||||
<ClCompile Include="..\helpers\ChannelHelper.cpp" />
|
||||
<ClCompile Include="..\helpers\GainIterator.cpp" />
|
||||
<ClCompile Include="..\helpers\LogHelper.cpp" />
|
||||
<ClCompile Include="..\helpers\MemoryHelper.cpp" />
|
||||
<ClCompile Include="..\helpers\RegistryHelper.cpp" />
|
||||
<ClCompile Include="..\helpers\StringHelper.cpp" />
|
||||
<ClCompile Include="..\IFilter.cpp" />
|
||||
<ClCompile Include="..\libHybridConv-0.1.1\libHybridConv_eapo.cpp" />
|
||||
<ClCompile Include="..\parser\RegexFunctions.cpp" />
|
||||
<ClCompile Include="..\parser\RegistryFunctions.cpp" />
|
||||
<ClCompile Include="..\parser\StringOperators.cpp" />
|
||||
<ClCompile Include="..\stdafx.cpp">
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\VoicemeeterAPOInfo.cpp" />
|
||||
<ClCompile Include="VoicemeeterClient.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="VoicemeeterClient.rc" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,239 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="helpers">
|
||||
<UniqueIdentifier>{0e9ead24-f831-4803-ab47-9b5208987e65}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="filters">
|
||||
<UniqueIdentifier>{e112c6dd-61fc-4742-808b-298e228688ed}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="parser">
|
||||
<UniqueIdentifier>{171427eb-7308-4b30-88c5-27068dd8a4f2}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="libHybridConv-0.1.1">
|
||||
<UniqueIdentifier>{898022d7-bfa6-4240-b443-e82e638cf0f6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\helpers\RegistryHelper.h">
|
||||
<Filter>helpers</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="VoicemeeterClient.h" />
|
||||
<ClInclude Include="..\helpers\StringHelper.h">
|
||||
<Filter>helpers</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\stdafx.h" />
|
||||
<ClInclude Include="..\..\..\..\..\Users\Jonas\Downloads\VoicemeeterRemoteAPI_Pack6\VoicemeeterRemote.h" />
|
||||
<ClInclude Include="..\FilterConfiguration.h" />
|
||||
<ClInclude Include="..\FilterEngine.h" />
|
||||
<ClInclude Include="..\filters\BiQuad.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\BiQuadFilter.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\BiQuadFilterFactory.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\ChannelFilter.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\ChannelFilterFactory.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\ConvolutionFilter.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\ConvolutionFilterFactory.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\CopyFilter.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\CopyFilterFactory.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\DelayFilter.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\DelayFilterFactory.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\DeviceFilterFactory.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\ExpressionFilterFactory.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\GraphicEQFilter.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\GraphicEQFilterFactory.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\IfFilterFactory.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\IIRFilter.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\IIRFilterFactory.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\IncludeFilterFactory.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\PreampFilter.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\PreampFilterFactory.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\filters\StageFilterFactory.h">
|
||||
<Filter>filters</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\parser\RegexFunctions.h">
|
||||
<Filter>parser</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\parser\RegistryFunctions.h">
|
||||
<Filter>parser</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\parser\StringOperators.h">
|
||||
<Filter>parser</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\libHybridConv-0.1.1\libHybridConv_eapo.h">
|
||||
<Filter>libHybridConv-0.1.1</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\IFilter.h" />
|
||||
<ClInclude Include="..\IFilterFactory.h" />
|
||||
<ClInclude Include="..\helpers\MemoryHelper.h">
|
||||
<Filter>helpers</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\helpers\LogHelper.h">
|
||||
<Filter>helpers</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\helpers\GainIterator.h">
|
||||
<Filter>helpers</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\helpers\ChannelHelper.h">
|
||||
<Filter>helpers</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="resource.h" />
|
||||
<ClInclude Include="..\VoicemeeterAPOInfo.h" />
|
||||
<ClInclude Include="..\AbstractAPOInfo.h" />
|
||||
<ClInclude Include="..\helpers\ScopeGuard.h">
|
||||
<Filter>helpers</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\helpers\UncaughtExceptions.h">
|
||||
<Filter>helpers</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\helpers\RegistryHelper.cpp">
|
||||
<Filter>helpers</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="VoicemeeterClient.cpp" />
|
||||
<ClCompile Include="..\helpers\StringHelper.cpp">
|
||||
<Filter>helpers</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\stdafx.cpp" />
|
||||
<ClCompile Include="..\FilterConfiguration.cpp" />
|
||||
<ClCompile Include="..\FilterEngine.cpp" />
|
||||
<ClCompile Include="..\filters\BiQuad.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\BiQuadFilter.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\BiQuadFilterFactory.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\ChannelFilter.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\ChannelFilterFactory.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\ConvolutionFilter.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\ConvolutionFilterFactory.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\CopyFilter.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\CopyFilterFactory.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\DelayFilter.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\DelayFilterFactory.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\DeviceFilterFactory.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\ExpressionFilterFactory.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\GraphicEQFilter.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\GraphicEQFilterFactory.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\IfFilterFactory.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\IIRFilter.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\IIRFilterFactory.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\IncludeFilterFactory.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\PreampFilter.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\PreampFilterFactory.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\filters\StageFilterFactory.cpp">
|
||||
<Filter>filters</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\parser\RegexFunctions.cpp">
|
||||
<Filter>parser</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\parser\RegistryFunctions.cpp">
|
||||
<Filter>parser</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\parser\StringOperators.cpp">
|
||||
<Filter>parser</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\libHybridConv-0.1.1\libHybridConv_eapo.cpp">
|
||||
<Filter>libHybridConv-0.1.1</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\IFilter.cpp" />
|
||||
<ClCompile Include="..\helpers\MemoryHelper.cpp">
|
||||
<Filter>helpers</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\helpers\LogHelper.cpp">
|
||||
<Filter>helpers</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\helpers\GainIterator.cpp">
|
||||
<Filter>helpers</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\helpers\ChannelHelper.cpp">
|
||||
<Filter>helpers</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\VoicemeeterAPOInfo.cpp" />
|
||||
<ClCompile Include="..\AbstractAPOInfo.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="VoicemeeterClient.rc" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,775 @@
|
||||
/******************************************************************************/
|
||||
/* Voicemeeter Remote API. V.Burel©2015 */
|
||||
/******************************************************************************/
|
||||
/* This Library allows communication with Voicemeeter Applications */
|
||||
/* 4 Client Applications can be connected to remote Voicemeeter. */
|
||||
/******************************************************************************/
|
||||
/* */
|
||||
/* OFFICIAL LINK : WWW.VOICEMEETER.COM */
|
||||
/* */
|
||||
/******************************************************************************/
|
||||
/* COPYRIGHT: Vincent Burel(c)2015 All Rights Reserved */
|
||||
/******************************************************************************/
|
||||
/* LICENSING: This header file and VoicemeeterRemote.dll are made available */
|
||||
/* for evaluation and testing purpose only (to make demo and proof */
|
||||
/* of concept). */
|
||||
/* */
|
||||
/* for any commercial exploitation or to get specific support, */
|
||||
/* a commercial license needs to be purchased. thanks to contact */
|
||||
/* us by e-mail (get our contact on www.vb-audio.com). */
|
||||
/******************************************************************************/
|
||||
/* long = 32 bit integer */
|
||||
/******************************************************************************/
|
||||
|
||||
|
||||
#ifndef __VOICEMEETER_REMOTE_H__
|
||||
#define __VOICEMEETER_REMOTE_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
#define VBVMR_RESULT_OK 0
|
||||
|
||||
/******************************************************************************/
|
||||
/* */
|
||||
/* Login */
|
||||
/* */
|
||||
/******************************************************************************/
|
||||
|
||||
/** @name Communication Login / logout
|
||||
* @{ */
|
||||
|
||||
/**
|
||||
@brief Open Communication Pipe With Voicemeeter (typically called on software startup).
|
||||
@return : 0: OK (no error).
|
||||
1: OK but Voicemeeter Application not launched.
|
||||
-1: cannot get client (unexpected)
|
||||
-2: unexpected login (logout was expected before).
|
||||
*/
|
||||
|
||||
long __stdcall VBVMR_Login(void);
|
||||
|
||||
/**
|
||||
@brief Close Communication Pipe With Voicemeeter (typically called on software end).
|
||||
@return : 0 if ok.
|
||||
*/
|
||||
|
||||
long __stdcall VBVMR_Logout(void);
|
||||
|
||||
|
||||
/**
|
||||
@brief Run Voicemeeter Application (get installation directory and run Voicemeeter Application).
|
||||
@param vType : Voicemeeter type (1 = Voicemeeter, 2= Voicemeeter Banana).
|
||||
@return : 0: Ok.
|
||||
-1: not installed
|
||||
*/
|
||||
|
||||
long __stdcall VBVMR_RunVoicemeeter(long vType);
|
||||
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
/* */
|
||||
/* General Information */
|
||||
/* */
|
||||
/******************************************************************************/
|
||||
|
||||
/** @name General Information
|
||||
* @{ */
|
||||
|
||||
/**
|
||||
@brief Get Voicemeeter Type
|
||||
@param pType : Pointer on 32bit long receiving the type (1 = Voicemeeter, 2= Voicemeeter Banana).
|
||||
|
||||
VOICEMEETER STRIP/BUS INDEX ASSIGNMENT
|
||||
|
||||
| Strip 1 | Strip 2 |Virtual Input| BUS A | BUS B |
|
||||
+---------+---------+-------------+---------+---------+
|
||||
| 0 | 1 | 2 | 0 | 1 |
|
||||
|
||||
VOICEMEETER BANANA STRIP/BUS INDEX ASSIGNMENT
|
||||
|
||||
| Strip 1 | Strip 2 | Strip 2 |Virtual Input|Virtual AUX|BUS A1|BUS A2|BUS A3|BUS B1|BUS B2|
|
||||
+---------+---------+---------+-------------+-----------+------+------+------+------+------+
|
||||
| 0 | 1 | 2 | 3 | 4 | 0 | 1 | 2 | 3 | 4 |
|
||||
|
||||
|
||||
|
||||
@return : 0: OK (no error).
|
||||
-1: cannot get client (unexpected)
|
||||
-2: no server.
|
||||
*/
|
||||
|
||||
long __stdcall VBVMR_GetVoicemeeterType(long * pType);
|
||||
|
||||
/**
|
||||
@brief Get Voicemeeter Version
|
||||
@param pType : Pointer on 32bit integer receiving the version (v1.v2.v3.v4)
|
||||
v1 = (version & 0xFF000000)>>24;
|
||||
v2 = (version & 0x00FF0000)>>16;
|
||||
v3 = (version & 0x0000FF00)>>8;
|
||||
v4 = version & 0x000000FF;
|
||||
|
||||
@return : 0: OK (no error).
|
||||
-1: cannot get client (unexpected)
|
||||
-2: no server.
|
||||
*/
|
||||
|
||||
long __stdcall VBVMR_GetVoicemeeterVersion(long * pVersion);
|
||||
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
/* */
|
||||
/* Get parameters */
|
||||
/* */
|
||||
/******************************************************************************/
|
||||
|
||||
/** @name Getting Parameters
|
||||
* @{ */
|
||||
|
||||
/**
|
||||
@brief Check if parameters have changed.
|
||||
Call this function periodically (typically every 10 or 20ms).
|
||||
(this function must be called from one thread only)
|
||||
|
||||
@return: 0: no new paramters.
|
||||
1: New parameters -> update your display.
|
||||
-1: error (unexpected)
|
||||
-2: no server.
|
||||
*/
|
||||
|
||||
long __stdcall VBVMR_IsParametersDirty(void);
|
||||
|
||||
/**
|
||||
@brief get parameter value.
|
||||
@param szParamName : Null Terminal ASCII String giving the name of the parameter (see parameters name table)
|
||||
@param pValue : Pointer on float (32bit float by reference) receiving the wanted value.
|
||||
@return : 0: OK (no error).
|
||||
-1: error
|
||||
-2: no server.
|
||||
-3: unknown parameter
|
||||
-5: structure mismatch
|
||||
*/
|
||||
|
||||
long __stdcall VBVMR_GetParameterFloat(char * szParamName, float * pValue);
|
||||
|
||||
/**
|
||||
@brief get parameter value.
|
||||
@param szParamName : Null Terminal ASCII String giving the name of the parameter (see parameters name table)
|
||||
@param pValue : Pointer on String (512 char or wchar) receiving the wanted value.
|
||||
@return : 0: OK (no error).
|
||||
-1: error
|
||||
-2: no server.
|
||||
-3: unknown parameter
|
||||
-5: structure mismatch
|
||||
*/
|
||||
|
||||
long __stdcall VBVMR_GetParameterStringA(char * szParamName, char * szString);
|
||||
long __stdcall VBVMR_GetParameterStringW(char * szParamName, unsigned short * wszString);
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
/* */
|
||||
/* Get levels */
|
||||
/* */
|
||||
/******************************************************************************/
|
||||
|
||||
/** @name Getting RT Data
|
||||
* @{ */
|
||||
|
||||
/**
|
||||
@brief Get Current levels.
|
||||
(this function must be called from one thread only)
|
||||
|
||||
@param nType: 0= pre fader input levels.
|
||||
1= post fader input levels.
|
||||
2= post Mute input levels.
|
||||
3= output levels.
|
||||
|
||||
@param nuChannel: audio channel zero based index
|
||||
for input 0 = in#1 left, 1= in#1 Right, etc...
|
||||
for output 0 = busA ch1, 1 = busA ch2...
|
||||
|
||||
VOICEMEETER CHANNEL ASSIGNMENT
|
||||
|
||||
| Strip 1 | Strip 2 | Virtual Input |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 |
|
||||
|
||||
| Output A1 / A2 | Virtual Output |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 |
|
||||
|
||||
VOICEMEETER BANANA CHANNEL ASSIGNMENT
|
||||
|
||||
| Strip 1 | Strip 2 | Strip 3 | Virtual Input | Virtual Input AUX |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
|
||||
|
||||
| Output A1 | Output A2 | Output A3 |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
|
||||
| Virtual Output B1 | Virtual Output B2 |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 |
|
||||
|
||||
|
||||
@return : 0: OK (no error).
|
||||
-1: error
|
||||
-2: no server.
|
||||
-3: no level available
|
||||
-4: out of range
|
||||
*/
|
||||
|
||||
long __stdcall VBVMR_GetLevel(long nType, long nuChannel, float * pValue);
|
||||
|
||||
|
||||
/**
|
||||
@brief Get MIDI message from M.I.D.I. input device used by Voicemeeter M.I.D.I. mapping.
|
||||
(this function must be called from one thread only)
|
||||
|
||||
@param pMIDIBuffer: pointer on MIDI Buffer. Expected message size is below 4 bytes,
|
||||
but it's recommended to use 1024 Bytes local buffer to receive
|
||||
possible multiple M.I.D.I. event message in optimal way:
|
||||
unsigned char pBuffer[1024];
|
||||
|
||||
|
||||
@return : >0: number of bytes placed in buffer (2 or 3 byte for usual M.I.D.I. message)
|
||||
-1: error
|
||||
-2: no server.
|
||||
-5: no MIDI data
|
||||
-6: no MIDI data
|
||||
*/
|
||||
|
||||
|
||||
long __stdcall VBVMR_GetMidiMessage(unsigned char *pMIDIBuffer, long nbByteMax);
|
||||
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
/* */
|
||||
/* Set Parameters */
|
||||
/* */
|
||||
/******************************************************************************/
|
||||
|
||||
/** @name Setting Parameters
|
||||
* @{ */
|
||||
|
||||
/**
|
||||
@brief Set a single float 32 bits parameters .
|
||||
@param szParamName : Null Terminal ASCII String giving the name of the parameter (see parameters name table)
|
||||
example:
|
||||
Strip[1].gain
|
||||
Strip[0].mute
|
||||
Bus[0].gain
|
||||
Bus[0].eq.channel[0].cell[0].gain
|
||||
|
||||
@param pValue : float 32bit containing the new value.
|
||||
@return : 0: OK (no error).
|
||||
-1: error
|
||||
-2: no server.
|
||||
-3: unknown parameter
|
||||
*/
|
||||
|
||||
long __stdcall VBVMR_SetParameterFloat(char * szParamName, float Value);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
@brief Set a single string parameters .
|
||||
@param szParamName : Null Terminal ASCII String giving the name of the parameter (see parameters name table)
|
||||
example:
|
||||
Strip[1].name
|
||||
Strip[0].device.mme
|
||||
Bus[0].device.asio
|
||||
|
||||
@param szString : zero terminal string.
|
||||
@return : 0: OK (no error).
|
||||
-1: error
|
||||
-2: no server.
|
||||
-3: unknown parameter
|
||||
|
||||
*/
|
||||
|
||||
|
||||
long __stdcall VBVMR_SetParameterStringA(char * szParamName, char * szString);
|
||||
long __stdcall VBVMR_SetParameterStringW(char * szParamName, unsigned short * wszString);
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
@brief Set one or several parameters by a script ( < 48 kB ).
|
||||
@param szParamName : Null Terminal ASCII String giving the script
|
||||
(script allows to change several parameters in the same time - SYNCHRO).
|
||||
Possible Instuction separators: ',' ';' or '\n'(CR)
|
||||
EXAMPLE:
|
||||
"Strip[0].gain = -6.0
|
||||
Strip[0].A1 = 0
|
||||
Strip[0].B1 = 1
|
||||
Strip[1].gain = -6.0
|
||||
Strip[2].gain = 0.0
|
||||
Strip[3].name = "Skype Caller" "
|
||||
|
||||
@return : 0: OK (no error).
|
||||
>0: number of line causing script error.
|
||||
-1: error
|
||||
-2: no server.
|
||||
-3: unexpected error
|
||||
-4: unexpected error
|
||||
*/
|
||||
|
||||
long __stdcall VBVMR_SetParameters(char * szParamScript);
|
||||
long __stdcall VBVMR_SetParametersW(unsigned short * szParamScript);
|
||||
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
/* DEVICES ENUMERATOR */
|
||||
/******************************************************************************/
|
||||
|
||||
|
||||
/** @name Device Enumeration Functions
|
||||
* @{ */
|
||||
|
||||
#define VBVMR_DEVTYPE_MME 1
|
||||
#define VBVMR_DEVTYPE_WDM 3
|
||||
#define VBVMR_DEVTYPE_KS 4
|
||||
#define VBVMR_DEVTYPE_ASIO 5
|
||||
|
||||
/**
|
||||
@brief Get number of Audio Output Device available on the system
|
||||
@return : return number of device found.
|
||||
*/
|
||||
|
||||
long __stdcall VBVMR_Output_GetDeviceNumber(void);
|
||||
|
||||
/**
|
||||
@brief Return pointer on Output Device Descriptor according index
|
||||
@param zindex : zero based index
|
||||
@param nType : Pointer on 32bit long receiving the type (pointer can be NULL).
|
||||
@param szName : Pointer on string (256 char min) receiving the device name (pointer can be NULL).
|
||||
@param szHardwareId : Pointer on string (256 char min) receiving the hardware ID (pointer can be NULL).
|
||||
@return : 0: OK (no error).
|
||||
*/
|
||||
|
||||
long __stdcall VBVMR_Output_GetDeviceDescA(long zindex, long * nType, char * szDeviceName, char * szHardwareId);
|
||||
long __stdcall VBVMR_Output_GetDeviceDescW(long zindex, long * nType, unsigned short * wszDeviceName, unsigned short * wszHardwareId);
|
||||
|
||||
/**
|
||||
@brief Get number of Audio Input Device available on the system
|
||||
@return : return number of device found.
|
||||
*/
|
||||
|
||||
long __stdcall VBVMR_Input_GetDeviceNumber(void);
|
||||
|
||||
/**
|
||||
@brief Return pointer on Input Device Descriptor according index
|
||||
@param zindex : zero based index
|
||||
@param nType : Pointer on 32bit long receiving the type (pointer can be NULL).
|
||||
@param szName : Pointer on string (256 char min) receiving the device name (pointer can be NULL).
|
||||
@param szHardwareId : Pointer on string (256 char min) receiving the hardware ID (pointer can be NULL).
|
||||
@return : 0: OK (no error).
|
||||
*/
|
||||
|
||||
long __stdcall VBVMR_Input_GetDeviceDescA(long zindex, long * nType, char * szDeviceName, char * szHardwareId);
|
||||
long __stdcall VBVMR_Input_GetDeviceDescW(long zindex, long * nType, unsigned short * wszDeviceName, unsigned short * wszHardwareId);
|
||||
|
||||
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
/* VB-AUDIO CALLBACK */
|
||||
/******************************************************************************/
|
||||
/* 4x Functions to process all voicemeeter audio input and output channels */
|
||||
/* */
|
||||
/* VBVMR_AudioCallbackRegister :to register your audio callback(s) */
|
||||
/* VBVMR_AudioCallbackStart :to start the audio stream */
|
||||
/* VBVMR_AudioCallbackStop :to stop the audio stream */
|
||||
/* VBVMR_AudioCallbackUnregister :to unregister / Release callback(s) */
|
||||
/******************************************************************************/
|
||||
|
||||
/** @name VB-Audio Callback Functions
|
||||
* @{ */
|
||||
|
||||
|
||||
typedef struct tagVBVMR_AUDIOINFO
|
||||
{
|
||||
long samplerate;
|
||||
long nbSamplePerFrame;
|
||||
} VBVMR_T_AUDIOINFO, *VBVMR_PT_AUDIOINFO, *VBVMR_LPT_AUDIOINFO;
|
||||
|
||||
|
||||
typedef struct tagVBVMR_AUDIOBUFFER
|
||||
{
|
||||
long audiobuffer_sr; //Sampling Rate
|
||||
long audiobuffer_nbs; //number of sample per frame
|
||||
long audiobuffer_nbi; //number of inputs
|
||||
long audiobuffer_nbo; //number of outputs
|
||||
float * audiobuffer_r[128]; //nbi input pointers containing frame of nbs sample (of 32bits float)
|
||||
float * audiobuffer_w[128]; //nbo output pointers containing frame of nbs sample (of 32bits float)
|
||||
} VBVMR_T_AUDIOBUFFER, *VBVMR_PT_AUDIOBUFFER, *VBVMR_LPT_AUDIOBUFFER;
|
||||
|
||||
|
||||
/**
|
||||
@brief VB-AUDIO Callback is called for different task to Initialize, perform and end your process.
|
||||
VB-AUDIO Callback is part of single TIME CRITICAL Thread.
|
||||
VB-AUDIO Callback is non re-entrant (cannot be called while in process)
|
||||
VB-AUDIO Callback is supposed to be REAL TIME when called to process buffer.
|
||||
(it means that the process has to be performed as fast as possible, waiting cycles are forbidden.
|
||||
do not use O/S synchronization object, even Critical_Section can generate waiting cycle. Do not use
|
||||
system functions that can generate waiting cycle like display, disk or communication functions for example).
|
||||
|
||||
@param lpUser: User pointer given on callback registration.
|
||||
@param ncommand: reason why the callback is called.
|
||||
@param lpData: pointer on structure, pending on nCommand.
|
||||
@param nnn: additional data, unused
|
||||
|
||||
@return : 0: always 0 (unused).
|
||||
*/
|
||||
|
||||
|
||||
typedef long (__stdcall *T_VBVMR_VBAUDIOCALLBACK)(void * lpUser, long nCommand, void * lpData, long nnn);
|
||||
|
||||
|
||||
#define VBVMR_CBCOMMAND_STARTING 1 //command to initialize data according SR and buffer size
|
||||
//info = (VBVMR_LPT_AUDIOINFO)lpData
|
||||
|
||||
#define VBVMR_CBCOMMAND_ENDING 2 //command to release data
|
||||
#define VBVMR_CBCOMMAND_CHANGE 3 //If change in audio stream, you will have to restart audio
|
||||
|
||||
#define VBVMR_CBCOMMAND_BUFFER_IN 10 //input insert
|
||||
#define VBVMR_CBCOMMAND_BUFFER_OUT 11 //bus output insert
|
||||
#define VBVMR_CBCOMMAND_BUFFER_MAIN 20 //all i/o
|
||||
//audiobuffer = (VBVMR_LPT_AUDIOBUFFER)lpData
|
||||
//nnn = synchro = 1 if synchro with Voicemeeter
|
||||
|
||||
/*
|
||||
-----------------------------------------------------
|
||||
AUDIO BUFFER for VBVMR_CBCOMMAND_BUFFER_IN
|
||||
-----------------------------------------------------
|
||||
VOICEMEETER
|
||||
|
||||
| Strip 1 | Strip 2 | Virtual Input |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 |
|
||||
|
||||
VOICEMEETER BANANA
|
||||
|
||||
| Strip 1 | Strip 2 | Strip 3 | Virtual Input | Virtual Input AUX |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
|
||||
|
||||
VOICEMEETER 8
|
||||
|
||||
| Strip 1 | Strip 2 | Strip 3 | Strip 4 | Strip 5 | Virtual Input | Virtual Input AUX | Virtual Input 8 |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 |
|
||||
|
||||
|
||||
-----------------------------------------------------
|
||||
AUDIO BUFFER for VBVMR_CBCOMMAND_BUFFER_OUT
|
||||
-----------------------------------------------------
|
||||
VOICEMEETER
|
||||
|
||||
| Output A1 / A2 | Virtual Output |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 |
|
||||
|
||||
VOICEMEETER BANANA
|
||||
|
||||
| Output A1 | Output A2 | Output A3 |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
|
||||
| Virtual Output B1 | Virtual Output B2 |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 |
|
||||
|
||||
|
||||
VOICEMEETER 8
|
||||
|
||||
| Output A1 | Output A2 | Output A3 | Output A4 | Output A5 |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 |
|
||||
|
||||
| Virtual Output B1 | Virtual Output B2 | Virtual Output B3 |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 |
|
||||
|
||||
|
||||
-----------------------------------------------------
|
||||
AUDIO BUFFER for VBVMR_CBCOMMAND_BUFFER_MAIN
|
||||
-----------------------------------------------------
|
||||
VOICEMEETER
|
||||
|
||||
| Strip 1 | Strip 2 | Virtual Input |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 |
|
||||
|
||||
| Output A1 / A2 | Virtual Output |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
|
||||
Output buffer provides outputs only:
|
||||
| 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 |
|
||||
|
||||
VOICEMEETER BANANA
|
||||
|
||||
| Strip 1 | Strip 2 | Strip 3 | Virtual Input | Virtual Input AUX |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
|
||||
|
||||
| Output A1 | Output A2 | Output A3 |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 |
|
||||
Output buffer provides outputs only:
|
||||
| 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
|
||||
|
||||
| Virtual Output B1 | Virtual Output B2 |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 |
|
||||
Output buffer provides outputs only:
|
||||
| 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 |
|
||||
|
||||
|
||||
VOICEMEETER 8
|
||||
|
||||
| Strip 1 | Strip 2 | Strip 3 | Strip 4 | Strip 5 | Virtual Input | Virtual Input AUX | Virtual Input 8 |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 |
|
||||
|
||||
| Output A1 | Output A2 | Output A3 | Output A4 | Output A5 |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
|
||||
Output buffer provides outputs only:
|
||||
| 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 |
|
||||
|
||||
| Virtual Output B1 | Virtual Output B2 | Virtual Output B3 |
|
||||
+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+----+
|
||||
| 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 |
|
||||
Output buffer provides outputs only:
|
||||
| 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 |
|
||||
|
||||
|
||||
*/
|
||||
|
||||
/**
|
||||
@brief register your audio callback function to receive real time audio buffer
|
||||
it's possible to register up to 3x different Audio Callback in the same application or in
|
||||
3x different applications. In the same application, this is possible because Voicemeeter
|
||||
provides 3 kind of audio Streams:
|
||||
- AUDIO INPUT INSERT (to process all Voicemeeter inputs as insert)
|
||||
- AUDIO OUTPUT INSERT (to process all Voicemeeter BUS outputs as insert)
|
||||
- ALL AUDIO I/O (to process all Voicemeeter i/o).
|
||||
Note: a single callback can be used to receive the 3 possible audio streams.
|
||||
|
||||
@param mode : callback type (main, input or bus output) see define below
|
||||
@param pCallback : Pointer on your callback function.
|
||||
@param lpUser : user pointer (pointer that will be passed in callback first argument).
|
||||
@param szClientName[64]: IN: Name of the application registering the Callback.
|
||||
OUT: Name of the application already registered.
|
||||
@return : 0: OK (no error).
|
||||
-1: error
|
||||
1: callback already registered (by another application).
|
||||
*/
|
||||
|
||||
long __stdcall VBVMR_AudioCallbackRegister(long mode, T_VBVMR_VBAUDIOCALLBACK pCallback, void * lpUser, char szClientName[64]);
|
||||
|
||||
#define VBVMR_AUDIOCALLBACK_IN 0x00000001 //to process input insert
|
||||
#define VBVMR_AUDIOCALLBACK_OUT 0x00000002 //to process output bus insert
|
||||
#define VBVMR_AUDIOCALLBACK_MAIN 0x00000004 //to receive all i/o
|
||||
|
||||
/**
|
||||
@brief Start / Stop Audio processing
|
||||
|
||||
he Callback will be called with
|
||||
@return : 0: OK (no error).
|
||||
-1: error
|
||||
-2: no callback registred.
|
||||
*/
|
||||
|
||||
long __stdcall VBVMR_AudioCallbackStart(void);
|
||||
long __stdcall VBVMR_AudioCallbackStop(void);
|
||||
|
||||
|
||||
/**
|
||||
@brief unregister your callback to release voicemeeter virtual driver
|
||||
(this function will automatically call VBVMR_AudioCallbackStop() function)
|
||||
@param pCallback : Pointer on your callback function.
|
||||
@return : 0: OK (no error).
|
||||
-1: error
|
||||
1: callback already unregistered.
|
||||
*/
|
||||
|
||||
long __stdcall VBVMR_AudioCallbackUnregister(void);
|
||||
|
||||
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
/* 'C' STRUCTURED INTERFACE */
|
||||
/******************************************************************************/
|
||||
|
||||
typedef long (__stdcall *T_VBVMR_Login)(void);
|
||||
typedef long (__stdcall *T_VBVMR_Logout)(void);
|
||||
typedef long (__stdcall *T_VBVMR_RunVoicemeeter)(long vType);
|
||||
|
||||
typedef long (__stdcall *T_VBVMR_GetVoicemeeterType)(long * pType);
|
||||
typedef long (__stdcall *T_VBVMR_GetVoicemeeterVersion)(long * pVersion);
|
||||
|
||||
typedef long (__stdcall *T_VBVMR_IsParametersDirty)(void);
|
||||
typedef long (__stdcall *T_VBVMR_GetParameterFloat)(char * szParamName, float * pValue);
|
||||
typedef long (__stdcall *T_VBVMR_GetParameterStringA)(char * szParamName, char * szString);
|
||||
typedef long (__stdcall *T_VBVMR_GetParameterStringW)(char * szParamName, unsigned short * wszString);
|
||||
|
||||
|
||||
typedef long (__stdcall *T_VBVMR_GetLevel)(long nType, long nuChannel, float * pValue);
|
||||
typedef long (__stdcall *T_VBVMR_GetMidiMessage)(unsigned char *pMIDIBuffer, long nbByteMax);
|
||||
|
||||
typedef long (__stdcall *T_VBVMR_SetParameterFloat)(char * szParamName, float Value);
|
||||
typedef long (__stdcall *T_VBVMR_SetParameters)(char * szParamScript);
|
||||
typedef long (__stdcall *T_VBVMR_SetParametersW)(unsigned short * szParamScript);
|
||||
typedef long (__stdcall *T_VBVMR_SetParameterStringA)(char * szParamName, char * szString);
|
||||
typedef long (__stdcall *T_VBVMR_SetParameterStringW)(char * szParamName, unsigned short * wszString);
|
||||
|
||||
typedef long (__stdcall *T_VBVMR_Output_GetDeviceNumber)(void);
|
||||
typedef long (__stdcall *T_VBVMR_Output_GetDeviceDescA)(long zindex, long * nType, char * szDeviceName, char * szHardwareId);
|
||||
typedef long (__stdcall *T_VBVMR_Output_GetDeviceDescW)(long zindex, long * nType, unsigned short * wszDeviceName, unsigned short * wszHardwareId);
|
||||
typedef long (__stdcall *T_VBVMR_Input_GetDeviceNumber)(void);
|
||||
typedef long (__stdcall *T_VBVMR_Input_GetDeviceDescA)(long zindex, long * nType, char * szDeviceName, char * szHardwareId);
|
||||
typedef long (__stdcall *T_VBVMR_Input_GetDeviceDescW)(long zindex, long * nType, unsigned short * wszDeviceName, unsigned short * wszHardwareId);
|
||||
|
||||
typedef long (__stdcall *T_VBVMR_AudioCallbackRegister)(long mode, T_VBVMR_VBAUDIOCALLBACK pCallback, void * lpUser, char szClientName[64]);
|
||||
typedef long (__stdcall *T_VBVMR_AudioCallbackStart)(void);
|
||||
typedef long (__stdcall *T_VBVMR_AudioCallbackStop)(void);
|
||||
typedef long (__stdcall *T_VBVMR_AudioCallbackUnregister)(void);
|
||||
|
||||
|
||||
typedef struct tagVBVMR_INTERFACE
|
||||
{
|
||||
T_VBVMR_Login VBVMR_Login;
|
||||
T_VBVMR_Logout VBVMR_Logout;
|
||||
T_VBVMR_RunVoicemeeter VBVMR_RunVoicemeeter;
|
||||
T_VBVMR_GetVoicemeeterType VBVMR_GetVoicemeeterType;
|
||||
T_VBVMR_GetVoicemeeterVersion VBVMR_GetVoicemeeterVersion;
|
||||
T_VBVMR_IsParametersDirty VBVMR_IsParametersDirty;
|
||||
T_VBVMR_GetParameterFloat VBVMR_GetParameterFloat;
|
||||
T_VBVMR_GetParameterStringA VBVMR_GetParameterStringA;
|
||||
T_VBVMR_GetParameterStringW VBVMR_GetParameterStringW;
|
||||
|
||||
T_VBVMR_GetLevel VBVMR_GetLevel;
|
||||
T_VBVMR_GetMidiMessage VBVMR_GetMidiMessage;
|
||||
|
||||
T_VBVMR_SetParameterFloat VBVMR_SetParameterFloat;
|
||||
T_VBVMR_SetParameters VBVMR_SetParameters;
|
||||
T_VBVMR_SetParametersW VBVMR_SetParametersW;
|
||||
T_VBVMR_SetParameterStringA VBVMR_SetParameterStringA;
|
||||
T_VBVMR_SetParameterStringW VBVMR_SetParameterStringW;
|
||||
|
||||
T_VBVMR_Output_GetDeviceNumber VBVMR_Output_GetDeviceNumber;
|
||||
T_VBVMR_Output_GetDeviceDescA VBVMR_Output_GetDeviceDescA;
|
||||
T_VBVMR_Output_GetDeviceDescW VBVMR_Output_GetDeviceDescW;
|
||||
T_VBVMR_Input_GetDeviceNumber VBVMR_Input_GetDeviceNumber;
|
||||
T_VBVMR_Input_GetDeviceDescA VBVMR_Input_GetDeviceDescA;
|
||||
T_VBVMR_Input_GetDeviceDescW VBVMR_Input_GetDeviceDescW;
|
||||
|
||||
T_VBVMR_AudioCallbackRegister VBVMR_AudioCallbackRegister;
|
||||
T_VBVMR_AudioCallbackStart VBVMR_AudioCallbackStart;
|
||||
T_VBVMR_AudioCallbackStop VBVMR_AudioCallbackStop;
|
||||
T_VBVMR_AudioCallbackUnregister VBVMR_AudioCallbackUnregister;
|
||||
|
||||
} T_VBVMR_INTERFACE, *PT_VBVMR_INTERFACE, *LPT_VBVMR_INTERFACE;
|
||||
|
||||
#ifdef VBUSE_LOCALLIB
|
||||
// internal used (not public)
|
||||
void __stdcall VBVMR_SetHinstance(HINSTANCE hinst);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /*__VOICEMEETER_REMOTE_H__*/
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by VoicemeeterClient.rc
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 101
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1001
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
Reference in new issue
Block a user