ISpStreamFormatConverter::ScaleConvertedToBaseOffset (SAPI 5.4)

Microsoft Speech API 5.4

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
S_OK
E_POINTER
SPERR_UNINITIALIZED

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.