ISpStreamFormatConverter::ScaleBaseToConvertedOffset (SAPI 5.3)

Microsoft Speech API 5.3

ISpStreamFormatConverter::ScaleBaseToConvertedOffset

ISpStreamFormatConverter::ScaleBaseToConvertedOffset converts an offset in the base stream into the equivalent offset in the converted stream. This method is primarily used internally to map event offsets.

  
    HRESULT ScaleBaseToConvertedOffset(
   ULONGLONG   ullOffsetBaseStream,
   ULONGLONG  *pullOffsetConvertedStream
);

Parameters

  • ullOffsetBaseStream
    The current offset in the base (unconverted) stream.
  • pullOffsetConvertedStream
    The new offset in the output (converted) stream.

Return values

Value
S_OK
E_POINTER
SPERR_UNINITIALIZED
E_INVALIDARG

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.