ISpStreamFormatConverter::ScaleConvertedToBaseOffset (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

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

ValueDescription
S_OKFunction completed successfully.
E_POINTERpullOffsetBaseStream is invalid.
SPERR_UNINITIALIZEDThe 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.

Show: