Newsgroups: microsoft.public.win32.programmer.directx.video
From: "Alessandro Angeli [MVP::DigitalMedia]" <nob...@nowhere.in.the.net>
Date: Tue, 5 Apr 2005 12:28:04 +0200
Local: Tues, Apr 5 2005 6:28 am
Subject: Re: IAsyncReader implementation
Robin wrote: From the Async sample you only need 4 files: asyncio.cpp, > The problem on the microsoft example is, that it is using > a lot of seperated classes mixed together, so to get an > overview > is not so easy. > Now I have a first implementation of IAsyncSource based asyncio.h, asyncrdr.cpp, asyncrdr.h. The only modification needed IIRC is to comment out #include "asyncflt.h" in asyncrdr.cpp. Derive your filter from CAsyncReader and its output pin from Add whatever initialization interface you like to the filter Override the following methods on the pin: SetPointer(), > Are their any resource available, how it's best to use Pull-mode uses random access to the source stream where all > IAsyncSource (pull mode) with network sources instead > file sources? > Because the most useful mpeg2 demultiplexers only the stream is available at any moment while a network source is usually a sequential stream where only the current samples are available so it is not easy to write a pull-mode source filter for a network source, hence your problems. You need to do any needed buffering to simulate random access: this what the URLReader does, to the extent that it fully transfers a stream an buffers it to disk when a request is made to read a part of the stream that it does not yet have. -- // Alessandro Angeli You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||