From: "dl0haus"
[Quoted Text] > I'm using IWMWriter to write a stream to a file. What I > was curious about is the ability to append. In my > scenario, we'll have a stream go down for various > reasons. When it restarts, if I use the same filename > for output, will it append to that file or will it > overwrite it? > > I'm assuming that if it appends to the existing file and > its just raw ASF data and it can be indexed afterwards > with no problems? > > Is this the case or am I going to have to perform some > kind of write on another filename, somehow concatenating > the files after download and then indexing?
Since ASF is a structured format, the WMWriter will always create a new file, overwriting a previous one. If you want to append new data, you need to either copy the old file's data to the new file before writing the new data or stitch the files afterwards.
-- // Alessandro Angeli // MVP :: DirectShow / MediaFoundation // mvpnews at riseoftheants dot com // http://www.riseoftheants.com/mmx/faq.htm
|