How can I directly embed a DirectShow Push Source filter in an EXE?

I have a Delphi 6 program that receives sound from an external program through a socket. Now I want to transfer this sound to the DirectShow filter graph that I create, which routes this sound to different output filters on the PC. I use DSPACK to work with the DirectShow filter graph. I will use one of the DSPACK examples, which shows how to create a Push Source filter as a starting point.

Is it possible to embed the DirectShow filter directly in my main EXE or do I need to create an external DLL file or an AX file and run regsvr32? I would like to avoid creating an external module, otherwise I will have to create a bridge of data and data transfer between it and my main program, and I would prefer to eliminate this work. I am wondering if there is a way to simply include the source code filter code in my main program and the sophistication of Windows in working with it as a DirectShow filter, if at all possible.

+2
source share
2 answers

(DLL), COM-, . , - CoCreateInstance / DirectShow.

, IBaseFilter, IFilterGraph::AddFilter . , COM, / .

. Geraint .

+5

, , DLL , . , DLL, , , QI, .

, . , , , , . . .exe, ++

+3

Source: https://habr.com/ru/post/1540855/


All Articles