다음을 통해 공유


ISpStream (Windows Embedded CE 6.0)

1/6/2010

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

Header sapi.h, sapi.idl
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

SAPI Interfaces