The IAAFSoundDescriptor interface is implemented by objects which describe the basic parameters of Sound used by all compression or coding schemes. More...
Public Member Functions | |
HRESULT | SetCompression ([in] aafUID_constref compression) |
Sets the kind of compression and format of compression information of the sound essence data. | |
HRESULT | GetCompression ([out] aafUID_t *pCompression) |
Gets the kind of compression and format of compression information of the sound essence data. | |
HRESULT | SetChannelCount ([in] aafUInt32 channelCount) |
Sets the number of channels of sound represented by this descriptor. | |
HRESULT | GetChannelCount ([out] aafUInt32 *pChannelCount) |
Gets the number of channels of sound represented by this descriptor. | |
HRESULT | SetAudioSamplingRate ([in] aafRational_t rate) |
Sets the sample rate of audio represented by this descriptor. | |
HRESULT | GetAudioSamplingRate ([out] aafRational_t *pRate) |
Gets the sample rate of audio represented by this descriptor. | |
HRESULT | SetIsLocked ([in] aafBoolean_t locked) |
Sets the Locked flag which indicates whether the number of samples per frame is locked or unlocked. | |
HRESULT | IsLocked ([out] aafBoolean_t *pLocked) |
Gets the Locked flag which indicates whether the number of samples per frame is locked or unlocked. | |
HRESULT | SetElectroSpatialFormulation ([in] aafElectroSpatialFormulation_t formulation) |
Sets the electro-spatial form of the signal. | |
HRESULT | GetElectroSpatialFormulation ([out] aafElectroSpatialFormulation_t *pFormulation) |
Gets the electro-spatial form of the signal. | |
HRESULT | SetAudioRefLevel ([in] aafInt8 level) |
Sets the audio reference level. | |
HRESULT | GetAudioRefLevel ([out] aafInt8 *pLevel) |
Gets the audio reference level. | |
HRESULT | SetDialNorm ([in] aafInt8 dialNorm) |
Sets the dial norm. | |
HRESULT | GetDialNorm ([out] aafInt8 *pDialNorm) |
Gets the dial norm. | |
HRESULT | SetQuantizationBits ([in] aafUInt32 bitsCount) |
Sets the number of quantization bits. | |
HRESULT | GetQuantizationBits ([out] aafUInt32 *pBitsCount) |
Gets the number of quantization bits. |
The IAAFSoundDescriptor interface is implemented by objects which describe the basic parameters of Sound used by all compression or coding schemes.
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
HRESULT IAAFSoundDescriptor::GetAudioRefLevel | ( | [out] aafInt8 * | pLevel | ) |
Gets the audio reference level.
This property is optional.
Succeeds if all of the following are true:
If this method fails nothing will be written to *pLevel.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
AAFRESULT_PROP_NOT_PRESENT
pLevel | [out] Audio reference level. |
HRESULT IAAFSoundDescriptor::GetAudioSamplingRate | ( | [out] aafRational_t * | pRate | ) |
Gets the sample rate of audio represented by this descriptor.
This property is required.
Succeeds if all of the following are true:
If this method fails nothing will be written to *pRate.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
pRate | [out] Sample rate of audio essence. |
HRESULT IAAFSoundDescriptor::GetChannelCount | ( | [out] aafUInt32 * | pChannelCount | ) |
Gets the number of channels of sound represented by this descriptor.
This property is required.
Succeeds if all of the following are true:
If this method fails nothing will be written to *pChannelCount.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
pChannelCount | [out] The number of channels of sound represented by this descriptor. |
HRESULT IAAFSoundDescriptor::GetCompression | ( | [out] aafUID_t * | pCompression | ) |
Gets the kind of compression and format of compression information of the sound essence data.
This property is optional.
Succeeds if all of the following are true:
If this method fails nothing will be written to *pCompression.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
AAFRESULT_PROP_NOT_PRESENT
pCompression | [out] Compression of the sound essence data. |
HRESULT IAAFSoundDescriptor::GetDialNorm | ( | [out] aafInt8 * | pDialNorm | ) |
Gets the dial norm.
This property is optional.
Succeeds if all of the following are true:
If this method fails nothing will be written to *pDialNorm.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
AAFRESULT_PROP_NOT_PRESENT
pDialNorm | [out] Dial norm. |
HRESULT IAAFSoundDescriptor::GetElectroSpatialFormulation | ( | [out] aafElectroSpatialFormulation_t * | pFormulation | ) |
Gets the electro-spatial form of the signal.
This property is optional.
Succeeds if all of the following are true:
If this method fails nothing will be written to *pFormulation.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
AAFRESULT_PROP_NOT_PRESENT
pFormulation | [out] Electro-spatial form of the signal. |
HRESULT IAAFSoundDescriptor::GetQuantizationBits | ( | [out] aafUInt32 * | pBitsCount | ) |
Gets the number of quantization bits.
This property is required.
Succeeds if all of the following are true:
If this method fails nothing will be written to *pBitsCount.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
pBitsCount | [out] Number of quantization bits. |
HRESULT IAAFSoundDescriptor::IsLocked | ( | [out] aafBoolean_t * | pLocked | ) |
Gets the Locked flag which indicates whether the number of samples per frame is locked or unlocked.
This property is optional.
Succeeds if all of the following are true:
If this method fails nothing will be written to *pLocked.
This method will return the following codes:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
AAFRESULT_PROP_NOT_PRESENT
pLocked | [out] Is number of samples per frame locked to video? |
HRESULT IAAFSoundDescriptor::SetAudioRefLevel | ( | [in] aafInt8 | level | ) |
Sets the audio reference level.
This property is optional.
Succeeds if all of the following are true:
If this method fails the AudioRefLevel property will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
level | [in] Audio reference level. |
HRESULT IAAFSoundDescriptor::SetAudioSamplingRate | ( | [in] aafRational_t | rate | ) |
Sets the sample rate of audio represented by this descriptor.
This property is required.
Succeeds if all of the following are true:
If this method fails the AudioSamplingRate property will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
rate | [in] Sample rate of audio essence. |
HRESULT IAAFSoundDescriptor::SetChannelCount | ( | [in] aafUInt32 | channelCount | ) |
Sets the number of channels of sound represented by this descriptor.
This property is required.
Succeeds if all of the following are true:
If this method fails the Channels property will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
channelCount | [in] The number of channels of sound represented by this descriptor. |
HRESULT IAAFSoundDescriptor::SetCompression | ( | [in] aafUID_constref | compression | ) |
Sets the kind of compression and format of compression information of the sound essence data.
This property is optional.
Succeeds if all of the following are true:
If this method fails the Compression property will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
compression | [in] Identifies kind of compression and format of compression information. |
HRESULT IAAFSoundDescriptor::SetDialNorm | ( | [in] aafInt8 | dialNorm | ) |
Sets the dial norm.
This property is optional.
Succeeds if all of the following are true:
If this method fails the DialNorm property will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
dialNorm | [in] Dial norm. |
HRESULT IAAFSoundDescriptor::SetElectroSpatialFormulation | ( | [in] aafElectroSpatialFormulation_t | formulation | ) |
Sets the electro-spatial form of the signal.
This property is optional.
Succeeds if all of the following are true:
If this method fails the ElectroSpatial property will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
formulation | [in] Electro-spatial form of the signal. |
HRESULT IAAFSoundDescriptor::SetIsLocked | ( | [in] aafBoolean_t | locked | ) |
Sets the Locked flag which indicates whether the number of samples per frame is locked or unlocked.
This property is optional.
Succeeds if all of the following are true:
If this method fails the Locked property will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
locked | [in] Is number of samples per frame locked to video? |
HRESULT IAAFSoundDescriptor::SetQuantizationBits | ( | [in] aafUInt32 | bitsCount | ) |
Sets the number of quantization bits.
This property is required.
Succeeds if all of the following are true:
If this method fails the QuantizationBits property will not be changed.
This method will return the following codes:
AAFRESULT_SUCCESS
bitsCount | [in] Number of quantization bits. |