• Home
  • Reviews
  • Articles
  • News
  • Tools
  • GamingHeaven
  • Forums
  • Network
 

Go Back   DriverHeaven.net > Forums > Hardware and Related Topics > kX Project Audio Driver Support Forum > Effects and the DSP

Notices

Reply
 
LinkBack Thread Tools
Old Sep 14, 2005, 08:21 PM   #1
S-3D enthusiast
 
Tril's Avatar
 
Join Date: Sep 2004
Location: Canada
Posts: 1,410
Tril is on a distinguished road
System Specs

How to get ASIO drivers names

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.

Last edited by Tril; Sep 15, 2005 at 09:14 PM.
Tril is offline   Reply With Quote
Old Sep 15, 2005, 12:31 PM   #2
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 4,104
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

I have not looked at the vsthost (nor do I currenlty have the ASIO SDK), but the ASIO drivers are listed in the registry under "HKEY_LOCAL_MACHINE\SOFTWARE\ASIO".
Russ is offline   Reply With Quote
Old Sep 15, 2005, 01:47 PM   #3
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 4,104
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

BTW: I do not know if there is a specific function in the ASIO SDK to enumerate the ASIO drivers, but generally, such functions simply enumerate the registry keys anyway.
Russ is offline   Reply With Quote
Old Sep 15, 2005, 02:05 PM   #4
DriverHeaven Extreme Member
 
Join Date: Jan 2005
Posts: 4,104
Russ has a spectacular aura aboutRuss has a spectacular aura aboutRuss has a spectacular aura about

Ok, I just finished downloading the ASIO SDK, and (using the above logic) did a quick search in the source files for "HKEY_LOCAL_MACHINE", and it looks like it does enumerate that registry key as I thought.

Look in ASIOLIST.CPP (in the asiosdk2.1\host\pc directory), and particulairly the AsioDriverList constructor. It looks as though if you instantiate a AsioDriverList object, that it automatically populates the list for you. In any case, look at the code in the ctor and you will see how it is done (if you are interested).

-Russ
Russ is offline   Reply With Quote
Old Sep 15, 2005, 03:56 PM   #5
S-3D enthusiast
 
Tril's Avatar
 
Join Date: Sep 2004
Location: Canada
Posts: 1,410
Tril is on a distinguished road
System Specs

Thank you, Russ. I'll look into the code where you suggested. You made me notice that I was using an older version of the SDK.

EDIT : Russ, your input was helpful. I finally got this part working using getDriverNames.

Last edited by Tril; Sep 15, 2005 at 09:15 PM.
Tril is offline   Reply With Quote
 

 
Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Artwork by Allan 'Zardon' Campbell, vBulletin implementation by Craig '5320' Humphreys based on original artwork by Ratchet.

All times are GMT -5. The time now is 11:29 PM. Copyright ©2008 HeavenMedia.net