Now, I've got 2 problems that needs to be solved:
1. Whenever I press the "Stop" button in "Filter Graph Editor", the program
hangs. This means that something goes wrong on my filter. I tried to
override the "Stop" button in my filter class, but amazingly, I noticed that
it isn't called by the graph manager! (Why? Don't know!).
2. I've got a synchronization problem, i.e., whenever the graph goes to the
running state, I'll be able to get the samples on "Receive" function of the
input pin(s). However, this function might be called 4 times for the first
input pin, and then 2 times for the second input pin, and again 3 times for
the first input pin (assuming we've got 2 input pins on this filter). So
I've to make these pins synchronized so that I can get my hands dirty on
samples to achieve my goals. I've got a theory for doing this, but I'm
seeking for a reasonable solutions.
Any help would be highly appreciated,
Sincerely,
--
Mehdi Mousavi - Software Architect [ http://mehdi.biz ]
"Mehdi Mousavi" <mehdi_...@hotmail.com> wrote in message
news:Ot$mgZVTD...@TK2MSFTNGP10.phx.gbl...
can you please give me a hint on how to do that? My Problem is, that i惴
getting a Transform Event on the Filter from every InputPin and i can愒
figure out from what Pin it arrives.
BR Milenko.
"Mehdi Mousavi" <mehdi_...@hotmail.com> wrote in message
news:e%23zvH%23tTDH...@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> can you please give me a hint on how to do that? My Problem is, that i´m
> getting a Transform Event on the Filter from every InputPin and i can´t
Hope this helps,
--
Mehdi Mousavi - Software Architect [ http://mehdi.biz ]
"Milenko Mitrovic" <dco...@dsp-worx.de> wrote in message
news:bfk2gd$j7i$04$1...@news.t-online.com...
If you're kind enought to share a simple snippet will be more that
explanatory :) ... Actually I took the same approach ,a saved the array of
input pins but I did'nt figure how to check in the "transform()" method the
current input pin that delivered the sample !!!
Thanks in advance !!!
PS: Do you know any mixer like filter with sources (or other resource
related with this issue) ???
On Tue, 29 Jul 2003 23:28:11 +0430, Mehdi Mousavi
<mehdi_...@hotmail.com> wrote:
> Whenever I create an input pin, I save the pointer of the associated
> class
> in a storage. I also give the every single pin a unique ID that
> identifies
> each input pin of the filter. You know the rest, whenever a sample is
> received, I simply search the storage for the "this" address. This is how
> I
> identify which pin's Receive method is called. That's all, pals.
>
> Hope this helps,
> --
> Mehdi Mousavi - Software Architect [ http://mehdi.biz ]
>
>
> "Milenko Mitrovic" <dco...@dsp-worx.de> wrote in message
> news:bfk2gd$j7i$04$1...@news.t-online.com...
>> Hi,
>>
>> can you please give me a hint on how to do that? My Problem is, that i´m
>> getting a Transform Event on the Filter from every InputPin and i can´t