Share via


ISpStream (Windows CE 5.0)

Send Feedback

This interface provides two distinct pieces of functionality:

  • It allows the application to wrap up an existing stream by providing both an IStream and its format so that the underlying ISpStreamFormat object can provide this data to SAPI when required. The new ISpStream object can be used as an input for SAPI wherever SAPI requires an ISpStreamFormat.
  • It allows the creation of an object suitable for SAPI use from a file using the BindToFile method. The helper function SPBindToFile can also be used to simplify this process even further.

When to Implement

This interface is implemented by SpStream.

Methods

The following table lists methods for the ISpStream interface.

Method Description
BindToFile Binds the audio stream to the file that it identifies.
Close Closes the audio stream.
GetBaseStream Gets the base address of the audio stream.
SetBaseStream Sets the base address of the audio stream.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Sapi.h, Sapi.idl.
Link Library: Sapilib.lib.

See Also

SAPI Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.