The IAAFSourceClip interface is implemented by objects that reference the content data and identify the source of the content data. More...
Public Member Functions | |
HRESULT | Initialize ([in] IAAFDataDef *pDataDef,[in] aafLength_constref length,[in] aafSourceRef_t sourceRef) |
This method initializes a source clip object with the given properties. | |
HRESULT | GetFade ([out] aafLength_t *pFadeInLen,[out] aafFadeType_t *pFadeInType,[out] aafBoolean_t *pFadeInPresent,[out] aafLength_t *pFadeOutLen,[out] aafFadeType_t *pFadeOutType,[out] aafBoolean_t *pFadeOutPresent) |
This function returns the optional fade information from a source clip. | |
HRESULT | ResolveRef ([out] IAAFMob **ppMob) |
Given a source clip object, this function returns a pointer to the mob that it references. | |
HRESULT | GetSourceReference ([out] aafSourceRef_t *pSourceRef) |
This function returns the source reference of this source clip. | |
HRESULT | SetFade ([in] aafInt32 fadeInLen,[in] aafFadeType_t fadeInType,[in] aafInt32 fadeOutLen,[in] aafFadeType_t fadeOutType) |
This function sets the optional fade properties on this source clip object. | |
HRESULT | SetSourceReference ([in] aafSourceRef_t sourceRef) |
This function sets the source reference of this source clip. |
The IAAFSourceClip interface is implemented by objects that reference the content data and identify the source of the content data.
In addition to the specific error results listed for each method, all methods in this interface may also return one of the following values:
AAFRESULT_NOMEMORY
Objects that implement IAAFSourceClip also implement the following interfaces:
HRESULT IAAFSourceClip::GetFade | ( | [out] aafLength_t * | pFadeInLen, |
[out] aafFadeType_t * | pFadeInType, | ||
[out] aafBoolean_t * | pFadeInPresent, | ||
[out] aafLength_t * | pFadeOutLen, | ||
[out] aafFadeType_t * | pFadeOutType, | ||
[out] aafBoolean_t * | pFadeOutPresent | ||
) |
This function returns the optional fade information from a source clip.
This function only applies to audio source clips. Length units are specified by the containing mob slot's edit rate.
Succeeds if all of the following are true:
If this method fails nothing will be written to any of the locations specified by the arguments.
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NOT_INITIALIZED
AAFRESULT_NULL_PARAM
pFadeInLen | [out] Fade In Length |
pFadeInType | [out] Fade In Type |
pFadeInPresent | [out] Fade In Type |
pFadeOutLen | [out] Fade Out Length |
pFadeOutType | [out] Fade Out Type |
pFadeOutPresent | [out] Fade In Type |
HRESULT IAAFSourceClip::GetSourceReference | ( | [out] aafSourceRef_t * | pSourceRef | ) |
This function returns the source reference of this source clip.
Note: the 3 properties of a source Clip that make up the "source reference" are sourceID, sourceTrackID, and startTime.
Succeeds if all of the following are true:
If this method fails nothing will be written to *pSourceRef.
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NOT_INITIALIZED
AAFRESULT_NULL_PARAM
pSourceRef | [out] Source Reference |
HRESULT IAAFSourceClip::Initialize | ( | [in] IAAFDataDef * | pDataDef, |
[in] aafLength_constref | length, | ||
[in] aafSourceRef_t | sourceRef | ||
) |
This method initializes a source clip object with the given properties.
Only required properties are set. Optional properties are added with separate functions.
Succeds if:
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_ALREADY_INITIALIZED
AAFRESULT_NULL_PARAM
pDataDef | [in] Data Definition object |
length | [in] Length property value |
sourceRef | [in] Source Reference |
HRESULT IAAFSourceClip::ResolveRef | ( | [out] IAAFMob ** | ppMob | ) |
Given a source clip object, this function returns a pointer to the mob that it references.
The returned mob is AddRef()ed before it is returned.
Succeeds if all of the following are true:
If this method fails nothing will be written to *ppMob.
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NOT_INITIALIZED
AAFRESULT_NULL_PARAM
AAFRESULT_MOB_NOT_FOUND
ppMob | [out] Referenced mob |
HRESULT IAAFSourceClip::SetFade | ( | [in] aafInt32 | fadeInLen, |
[in] aafFadeType_t | fadeInType, | ||
[in] aafInt32 | fadeOutLen, | ||
[in] aafFadeType_t | fadeOutType | ||
) |
This function sets the optional fade properties on this source clip object.
The fade properties only apply to a source clip of data definition (or convertible to a data definition) of type Sound. All arguments should be specified. Length units are specified by the containing mob slot's edit rate.
Succeeds if all of the following are true:
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NOT_INITIALIZED
fadeInLen | [in] Fade In Length |
fadeInType | [in] Fade In Type |
fadeOutLen | [in] Fade Out Length |
fadeOutType | [in] Fade Out Type |
HRESULT IAAFSourceClip::SetSourceReference | ( | [in] aafSourceRef_t | sourceRef | ) |
This function sets the source reference of this source clip.
Note: the 3 properties of a source Clip that make up the "source reference" are sourceID, sourceTrackID, and startTime.
Succeeds if all of the following are true:
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NOT_INITIALIZED
sourceRef | [in] Source Reference |