Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpStreamFormatConverter::ScaleConvertedToBaseOffset
ISpStreamFormatConverter::ScaleConvertedToBaseOffset maps a stream offset from the converted stream to the equivalent offset in the base stream.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT ScaleConvertedToBaseOffset(</strong> <strong> ULONGLONG</strong> <em>ullOffsetConvertedStream</em>, <strong> ULONGLONG</strong> *<em>pullOffsetBaseStream</em> ); </pre>
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.