ISpStreamFormatConverter::ScaleConvertedToBaseOffset

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

ISpStreamFormatConverter::ScaleConvertedToBaseOffset

ISpStreamFormatConverter::ScaleConvertedToBaseOffset maps a stream offset from the converted stream to the equivalent offset in the base stream.


HRESULT ScaleConvertedToBaseOffset(
   ULONGLONG    ullOffsetConvertedStream, 
   ULONGLONG   *pullOffsetBaseStream
);

Parameters

ullOffsetConvertedStream
The offset of the output (converted) stream.
pullOffsetBaseStream
The equivalent offset in the base (unconverted) stream.

Return values

Value Description
S_OK Function completed successfully.
E_POINTER pullOffsetBaseStream is invalid.
SPERR_UNINITIALIZED The base stream has not been initialized.

Remarks

When performing a mapping with a compressed format, it is possible to introduce small rounding errors, since the content of the audio is not used to perform the conversion.