[previous] [up] [next]     [contents] [index]
Next: Encoding Snips Up: Media Toolbox Previous: Styles

File Format

Buffer data can be read and written using wx:media-stream-in% and wx:media-stream-out% objects.

Buffer information can only be read from or written to one stream at a time. To write one or more buffers to a stream, first call the function wx:write-media-global-header to write initialization data into an output stream. When all buffers are written to the stream, call wx:write-media-global-footer. Similarly, reading buffers from a stream is initialized with wx:read-media-global-header and finalized with wx:read-media-global-footer.

The media file data format can be embedded within another file, and it can be extended with new kinds of data. The media file format can be extended in two ways: with snip- or content-specific data, and with buffer-specific global data. These are descibed in the remainder of this section.





PLT