ISpStreamFormatConverter::ScaleBaseToConvertedOffset (Windows Embedded CE 6.0)
1/6/2010
This method 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.
Syntax
HRESULT ScaleBaseToConvertedOffset(
ULONGLONG ullOffsetBaseStream,
ULONGLONG* pullOffsetConvertedStream
);
Parameters
- ullOffsetBaseStream
[in] Current offset in the base (unconverted) stream.
- pullOffsetConvertedStream
[out] Pointer to the new offset in the output (converted) stream.
Remarks
When performing a mapping with a compressed format it is possible to introduce small rounding errors, because the content of the audio is not used to perform the conversion.
Return Value
The following table shows the possible return values.
Value | Description |
---|---|
S_OK |
Function completed successfully. |
E_POINTER |
pullOffsetConvertedStream is bad or invalid. |
SPERR_UNINITIALIZED |
The base stream is not initialized. |
E_INVALIDARG |
ullOffsetBaseStream is less than the initial seek position of the current steam. pullOffsetConvertedStream is set to 0xFFFFFFFFFFFFFFFF. |
Requirements
Header | sapi.h, sapi.idl |
Library | sapilib.lib |
Windows Embedded CE | Windows CE .NET 4.1 and later |