Log in

View Full Version : Multiple same hardware issue in programming


Flopik
January 20th, 2005, 10:13
just want to know if Windows use the same driver if the exact hardware exist on the machine ? Because i have problem when im trying to capture audio from 3 PCI card from the same compagny. If the card are from different vendor it's ok. The same problem with usb material.

nikolatesla20
January 20th, 2005, 19:49
Well, I'm not sure about USB but PCI uses a GUID ID for every device, so whatever driver windows sees that matches that GUID, it will probably use, but most likely it will try to use signed drivers first.

-nt20

Mostek
January 25th, 2005, 06:42
It all depends how you have set up your inf file.

If all devices use the same driver windows will use the same driver(even in the same address space) for every one of the cards. So this means that your driver must be capable of handling multiple cards at the same time.
This is normally done so that you allocate class memory and do everything with that class pointer which is then saved in some kind of bag that M$ driver type supplies you.
But you can also set a global variable that contains pointers to this classes.
Anyway the first way is the right way, but if you will also write an ASIO driver you will have to use the second way.

Anyway which driver type are you using (portClass, AVStream)?
In a few months I'll publish a whole AVStream + ASIO driver source so if you want it now to check how some things are done just say so.

Peace
Mostek

Flopik
January 25th, 2005, 09:37
Thanks for the reply.
But I havent code the driver at all , im using the manufacturer driver or the windows drivers for the soundcards. Im not playing in the kernel lands. I using API in usermode.

Mostek
January 25th, 2005, 10:35
From that point of view as nikolatesla20 said a GUID represents every stereo channel you want to access. Now if the driver is written in multiple cards support mode is another thing -> normally the 1st version of multicard system is used so the driver it self doesn't know it's supporting multiple cards at once -> it's like every card has it's own driver.

If you have problems with multiple cards maybe it would be good to contact vendor and ask if they support multiple cards in system.

Peace
Mostek

Flopik
January 25th, 2005, 10:45
Is kinda weird because the card work alone but not when im trying to use both card in the same time. My program work when the card are different , so is why im asking about multiple same hardware issue with drivers.

Mostek
January 25th, 2005, 10:58
Well it's time to contact the card creators.

For my part it's strange that the driver doesn't support multiple cards in the same system as this is one of the initial requirements.

Anyway what are you working on?

Peace and good luck
Mostek

Flopik
January 25th, 2005, 11:51
A projet about localisation with 3 microphones using triangulation. So i need 3 soundcards. I catching the sound at the same time on each card and take the distance etc.

Mostek
January 25th, 2005, 17:13
Cool.

Flopik
January 28th, 2005, 16:32
Im pretty sure is related to Windows drivers somewhere and is not the fault of the driver.