Help - Search - Members - Calendar
Full Version: Test If Another App Use The Bda Tuner Device
DVB Owners Discussion Forum - dvbowners.com > Technical & Development Forums > BDA Driver Development
afan
Hi,

I would like to know a way to be informed of the use of my bda tuner by another application when I build the DS graph.
I would like to inform the user that another application is using it...
Thx for your help.

Steph
JoeyBloggs
It is not possible AFAIK. Microsoft specifications allow multiple processes to build a graph based on any particular tuner. It's only when you attempt to run the graph that it will fail if it is already in use (usually glitching or crashing the first process) wink.gif

The entire architecture is completely f*cked in this respect dry.gif There is just no real concept of applications cooperatively sharing hardware resources in windows.

Why DirectShow can't simply fail with (E_IN_USE) on the second attempted instantiation of a filter based on hardware resources, is beyond me ???
afan
Yes I thought so, there was no way to know that...
It's incredible ...
For a codec i can understand but for a hardware is wired ...
If anyone has a round solution, i would be grateful ;-)
bear
Do you know if a devcon restart will affect the card if its in use? You may be able to get an error code from devcon if the card and requires a restart.

A far as code, maybe use something like a null render filter to connect to the capture filter and try and pause the graph before proceeding with the rest of the build, you should get an 0x800700aa "Resource in use" error.
null_pointer
there was a thread discussing this a while ago, i can not remember where it ended up but do a few searches and see what you come up with.

basically you can not run the graph, it is not until the bda filters are run that they attach to the hardware, the idea behind this is your app can have its graph pre built and then when it needs to just run the graph. well that is how i believe it was intended to work.

WS builds the capture graph and if it will not run assumes the device is in use and moves on to the next one.

have fun smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.