Source group switching causes script stream drop outs
From: C Hoeppner (choeppner_at_comcast.net)
Date: 04/17/04
- Previous message: Chris: "Queue-It-Up & Current Playing Song"
- Next in thread: Arun Pereira: "Re: Source group switching causes script stream drop outs"
- Reply: Arun Pereira: "Re: Source group switching causes script stream drop outs"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 17 Apr 2004 14:02:01 -0400
(This looks like the most appropriate group to post this in...)
Hi everyone,
This might be a tough one, but here goes...
I am switching source groups with IWMEncSourceGroupCollection::put_Active().
When I switch from a 'file' source to a encoder card source there is a short
period of time where calls to IWMEncoder::SendScript() will return with an
error of 'The index specified is invalid.'
I can detect this error and resend the SendScript() until It does not return
an error. But the output is data is not present in the script stream.
If I wait a second or so after the put_Active() then the SendScript() works
as expected. No error and the data is in the script stream.
My question to everyone is...
Is there a way to determine when the put_Active() command has completed all
of its work behind the scenes and will accept the SendScript() command
properly?
I need to put a 'mark' in the stream just after I switch sources, and do not
want to wait a second or so.
Thanks in advance,
Charles
- Previous message: Chris: "Queue-It-Up & Current Playing Song"
- Next in thread: Arun Pereira: "Re: Source group switching causes script stream drop outs"
- Reply: Arun Pereira: "Re: Source group switching causes script stream drop outs"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|