Jump to content

MMProgRef - SPI Functions

From EDM2
Revision as of 00:46, 9 June 2025 by Martini (talk | contribs) (Created page with "{{MMProgRef}} The Stream Programming Interface (SPI) contains functions exported by the Sync/Stream Manager to support applications that control real-time data streaming. These functions are used to create data streams, associate data objects, and for data streaming and synchronization. SPI functions also enable applications to query and install stream protocols and to query the current stream time. The following table lists the SPI functions: {| class="wikitable" ! F...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Reprint Courtesy of International Business Machines Corporation, © International Business Machines Corporation

Multimedia Programming Reference
  1. Introduction
  2. What's New...
  3. MCI Functions
  4. High-Level Macro Service Functions
  5. Subsystem Messages
  6. Notification Messages
  7. MCI Command Messages
  8. String Commands
  9. Memory Playlist Commands
  10. Graphic Button Control
  11. Secondary Window Functions
  12. MMIO Functions
  13. MMIO Messages
  14. CODEC Messages
  15. DIVE Functions
  16. Real-Time MIDI Functions
  17. SPI Functions
  18. Data Stream State Table
  19. SMH Messages
  20. DDCMD Messages
  21. VSD Commands
  22. SHD Messages
  23. SHC Messages
  24. Data Types
  25. Types of MIDI Messages
  26. Multimedia Specification Overview
  27. Resource Interchange File Format
  28. Multimedia File Formats
  29. RIFF Compound Files and Elements - Sharing and Access
  30. Return Codes
  31. Notices
  32. Glossary

The Stream Programming Interface (SPI) contains functions exported by the Sync/Stream Manager to support applications that control real-time data streaming. These functions are used to create data streams, associate data objects, and for data streaming and synchronization. SPI functions also enable applications to query and install stream protocols and to query the current stream time.

The following table lists the SPI functions:

Function Description
SpiAssociate Associates a data object with a stream handler.
SpiCreateStream Creates a stream instance between a source and a target stream handler.
SpiDestroyStream Removes a stream instance from the system.
SpiDetermineSyncMaster Determines best master stream to be used in a sync group.
SpiDisableEvent Disables event detection for a particular event.
SpiDisableSync Removes a group of streams.
SpiEnableEvent Enables event detection for a particular event.
SpiEnableSync Establishes a group of streams to synchronize the streams.
SpiEnumerateHandlers Returns a list of the stream handler names installed in the SPI.INI file.
SpiEnumerateProtocols Returns a list of stream protocol keys for the specified stream handler.
SpiGetHandler Returns the handler ID for the specified stream handler.
SpiGetProtocol Queries a stream handler for a specified stream protocol.
SpiGetTime Queries the current stream time.
SpiInstallProtocol Installs or removes a specified stream protocol for a stream handler.
SpiSeekStream Seeks to a specified point in the stream object or sets the current stream time.
SpiStartStream Starts data streaming for a single stream instance or a group of streams.
SpiSendMsg Sends a message to a stream handler.
SpiStopStream Stops data streaming for a single stream instance or a group of streams.