My question is not exactly related to plugins but it's a programming question for kX so I thought it was the best place to ask.
I started working on AC3 encoding in realtime using the information posted in the forums and free source code. I don't know if I'll be able to make something that works but I'll never know unless I try.
I can use the following code to get the name of the wave devices and display them :
Code:
set <string> strdevices;
set <string>::iterator si;
WORD wNumDevices;
int i;
WAVEOUTCAPS mcap;
wNumDevices = waveOutGetNumDevs();
if (wNumDevices)
{
for (i=0; i < (int) wNumDevices; i++)
{
waveOutGetDevCaps(i,
&mcap,
sizeof(mcap));
strdevices.insert(mcap.szPname);
}
// Display
for (si=strdevices.begin(); si!=strdevices.end(); si++)
{
cout << *si << endl;
}
cout << endl;
}
There must be a similar code that can be used to get the ASIO driver names and display them. I'm currently looking in the source code of vsthost (
http://www.hermannseib.com/english/vsthost.htm) to try to figure out how it's done. That program is well done but it has a lot of code. I'm having a hard time finding the line(s) used to get the name of the ASIO device(s).
For my card the ASIO driver name is : KX ASIO CT 4832 10k1 [9800]
I want to find the code used to find that name. I thought someone here might know or might have a better chance at finding the required lines in the source code of vsthost.
I'll eventually find the information by myself but it's taking me a long time. I'll appreciate any help.