Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Developing an Audio Mixer

0 views
Skip to first unread message

Mehdi Mousavi

unread,
Jul 18, 2003, 1:59:18 PM7/18/03
to
Hi,
I've worked the past week to develop an "audio mixer" that has got 'N' input
pin and 'one' output pin. Every single input pin is negotiated to accept
"Mulaw, 8KHz 8bit Mono" media type. So they are all the same...

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

unread,
Jul 20, 2003, 12:52:29 PM7/20/03
to
Already solved. Thanks

--
Mehdi Mousavi - Software Architect [ http://mehdi.biz ]

"Mehdi Mousavi" <mehdi_...@hotmail.com> wrote in message
news:Ot$mgZVTD...@TK2MSFTNGP10.phx.gbl...

Milenko Mitrovic

unread,
Jul 22, 2003, 3:15:35 PM7/22/03
to
Hi,

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...

cyp...@nospam.com

unread,
Jul 23, 2003, 7:14:25 AM7/23/03
to
I also have the same problem , since I'm developing a Video Mixer ... to
capture the pin that the sample came from ... Any hints will be very useful
!


> 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

Mehdi Mousavi

unread,
Jul 29, 2003, 2:58:11 PM7/29/03
to
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...

cyp...@nospam.com

unread,
Aug 11, 2003, 5:39:37 AM8/11/03
to
Hi ,

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

0 new messages