|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AES3PCMDescriptor
Specifies an AES3 PCM descriptor that describes audio essence in the AES/EBU audio file format, as defined in the EBU/AES digital audio interface specification.
AAFFactory.makeAES3PCMDescriptor()
Field Summary | |
---|---|
static byte[] |
AES3DefaultUserData
Default AES3 fixed user data value. |
static byte[] |
AES3Minimum
Minimum channel status according to the AES3 specification, specified in section 5.2.1 of EBU Tech 3250. |
static AuxBitsModeType |
AUXBITSMODE_DEFAULT
Default value for the aux bits mode property, which is AuxBitsModeType.NotDefined . |
static short |
BLOCKSTARTOFFSET_DEFAULT
Default value for the block start offset property, which is 0. |
static EmphasisType |
EMPHASIS_DEFAULT
Default value for the emphasis property, which is EmphasisType.Unknown . |
Method Summary | |
---|---|
AuxBitsModeType |
getAuxBitsMode()
Returns the AES3 use of auxiliary bits in the associated audio essence. |
short |
getBlockStartOffset()
Returns the AES3 position of the first Z preamble in the associated sound essence stream. |
ChannelStatusModeType |
getChannelStatusModeAt(int index)
Returns the AES3 enumerated mode of carriage of channel status data for the associated audio essence for the given channel number. |
EmphasisType |
getEmphasis()
Returns the AES3 emphasis of the associated sound essence. |
byte[] |
getFixedChannelStatusDataAt(int index)
Returns the AES3 fixed channel status data for the channel referenced by the given index in the associated audio essence. |
byte[] |
getFixedUserDataAt(int index)
Returns the AES3 fixed user data for the given channel in the associated audio essence. |
UserDataModeType |
getUserDataModeAt(int index)
Returns the user data mode for the channel of the associated audio essence referenced by the given channel index. |
void |
omitChannelStatusData()
Omits the optional fixed channel status data and channel status mode properties from this AES3 PCM descriptor. |
void |
omitUserData()
Omit the optional fixed user data and user data mode properties from this AES3 PCM descriptor. |
void |
setAuxBitsMode(AuxBitsModeType auxBitsMode)
Sets the AES3 use of auxiliary bits in the associated audio essence. |
void |
setBlockStartOffset(Short blockStartOffset)
Sets the AES3 position of the first Z preamble in the associated sound essence stream. |
void |
setChannelStatusModeAt(int index,
ChannelStatusModeType channelStatusMode)
Sets the AES3 enumerated mode of carriage of channel status data for the associated audio essence at the given channel number. |
void |
setEmphasis(EmphasisType emphasisType)
Sets the AES3 emphasis property of the associated sound essence. |
void |
setFixedChannelStatusDataAt(int index,
byte[] fixedChannelStatusData)
Sets the AES3 fixed channel status data for the channel referenced by the given index in the associated audio essence. |
void |
setFixedUserDataAt(int index,
byte[] fixedUserData)
Sets the AES3 fixed user data for the given channel in the associated audio essence. |
void |
setUserDataModeAt(int index,
UserDataModeType userDataMode)
Sets the user data mode for the channel of the associated audio essence referenced by the given channel index. |
Methods inherited from interface tv.amwa.maj.iface.SoundDescriptor |
---|
getAudioRefLevel, getAudioSamplingRate, getChannelCount, getCompression, getDialNorm, getElectroSpatialFormulation, getQuantizationBits, isLocked, setAudioRefLevel, setAudioSamplingRate, setChannelCount, setCompression, setDialNorm, setElectroSpatialFormulation, setIsLocked, setQuantizationBits |
Methods inherited from interface tv.amwa.maj.iface.AAFFileDescriptor |
---|
getCodecDefinition, getContainerFormat, getLength, getLinkedSlotID, getSampleRate, setCodecDefinition, setContainerFormat, setLength, setLinkedSlotID, setSampleRate |
Methods inherited from interface tv.amwa.maj.iface.EssenceDescriptor |
---|
appendLocator, appendSubDescriptor, countLocators, countSubDescriptors, getLocatorAt, getLocators, getSubDescriptorAt, getSubDescriptors, insertLocatorAt, insertSubDescriptorAt, prependLocator, prependSubDescriptor, removeLocatorAt, removeSubDescriptorAt |
Methods inherited from interface tv.amwa.maj.iface.InterchangeObject |
---|
countProperties, createOptionalPropertyValue, disableGenerationTracking, enableGenerationTracking, getDefinition, getGeneration, getGenerationAUID, getProperties, getPropertyValue, isGenerationTracked, isPropertyPresent, omitOpionalProperty, setPropertyValue |
Field Detail |
---|
static final EmphasisType EMPHASIS_DEFAULT
Default value for the emphasis property, which is
EmphasisType.Unknown
.
static final short BLOCKSTARTOFFSET_DEFAULT
Default value for the block start offset property, which is 0.
static final AuxBitsModeType AUXBITSMODE_DEFAULT
Default value for the aux bits mode property, which is
AuxBitsModeType.NotDefined
.
static final byte[] AES3Minimum
Minimum channel status according to the AES3 specification, specified in section 5.2.1 of
EBU Tech 3250.
This is the default value returned by getChannelStatusModeAt(int)
.
static final byte[] AES3DefaultUserData
Default AES3 fixed user data value.
Method Detail |
---|
EmphasisType getEmphasis()
Returns the AES3 emphasis of the associated sound essence. If this optional property is not present, the default value of this property is returned.
EMPHASIS_DEFAULT
void setEmphasis(EmphasisType emphasisType)
Sets the AES3 emphasis property of the associated sound essence. Calling
this method with null
will omit this optional property.
emphasisType
- AES3 emphasis property of the associated sound essence.EMPHASIS_DEFAULT
@UInt16 short getBlockStartOffset()
Returns the AES3 position of the first Z preamble in the associated sound essence stream. If this optional property is not present, the default value of 0 is returned.
BLOCKSTARTOFFSET_DEFAULT
void setBlockStartOffset(@UInt16 Short blockStartOffset) throws IllegalArgumentException
Sets the AES3 position of the first Z preamble in the associated sound
essence stream. The default value of this optional property is 0.
To omit this optional property, call this method with null
.
blockStartOffset
- AES3 position of the first Z preamble in the associated sound
essence stream.
IllegalArgumentException
- The block start offset is negative.BLOCKSTARTOFFSET_DEFAULT
AuxBitsModeType getAuxBitsMode()
Returns the AES3 use of auxiliary bits in the associated audio
essence. If this optional property is not present, the default value of
AuxBitsModeType.NotDefined
is returned.
AUXBITSMODE_DEFAULT
void setAuxBitsMode(AuxBitsModeType auxBitsMode)
Sets the AES3 use of auxiliary bits in the associated audio
essence. To omit this optional property, call this method with
null
.
auxBitsMode
- AES3 use of auxiliary bits in the associated audio
essence.AUXBITSMODE_DEFAULT
ChannelStatusModeType getChannelStatusModeAt(@UInt32 int index) throws IndexOutOfBoundsException
Returns the AES3 enumerated mode of carriage of channel status data for the
associated audio essence for the given channel number. If the channel status
mode property is not present, the default value of ChannelStatusModeType.None
is returned.
index
- Index into the AES3 channel status mode array.
IndexOutOfBoundsException
- The given index is outside the acceptable range
for the current channel status mode array.SoundDescriptor.getChannelCount()
void setChannelStatusModeAt(@UInt32 int index, ChannelStatusModeType channelStatusMode) throws IndexOutOfBoundsException, NullPointerException
Sets the AES3 enumerated mode of carriage of channel status data for the associated audio essence at the given channel number.
If the channel status mode property is not present at the time of calling
the method, after completion of the method the property becomes
present and properties at other indexes are initialized to
ChannelStatusModeType.None
.
index
- Index of the channel status mode array to set the channel status for.channelStatusMode
- Channel status for the given index.
IndexOutOfBoundsException
- The given index is outside the acceptable range
for the current channel status mode array.
NullPointerException
- Cannot set the channel status for a channel to
null
.SoundDescriptor.getChannelCount()
byte[] getFixedChannelStatusDataAt(@UInt32 int index) throws IndexOutOfBoundsException
Returns the AES3 fixed channel status data for the channel referenced by the given index in the associated audio essence. The value returned is a 24-byte array.
The default value is the AES3 minimum, which codes the most significant
bit of the first byte as 1
and all other bits as 0
. If this
optional property is omitted, the default value will be returned.
index
- Channel index to retrieve the fixed channel status data for.
IndexOutOfBoundsException
- The given index is outside the acceptable range
for the current range of channels for which fixed status data is represented.SoundDescriptor.getChannelCount()
void setFixedChannelStatusDataAt(@UInt32 int index, byte[] fixedChannelStatusData) throws NullPointerException, IndexOutOfBoundsException, BadSizeException
Sets the AES3 fixed channel status data for the channel referenced by the given index in the associated audio essence. The data must take the form of a 24-byte array.
index
- Channel number to set the AES3 fixed channel status data for.fixedChannelStatusData
- Fixed channel status array.
NullPointerException
- The fixed channel status data argument is null
.
IndexOutOfBoundsException
- The given channel index is outside the acceptable
range for the associated audio essence.
BadSizeException
- The fixed channel status data must be an array of 24-bytes
exactly.SoundDescriptor.getChannelCount()
void omitChannelStatusData()
Omits the optional fixed channel status data and channel status mode properties from this
AES3 PCM descriptor. To make them present again, call setFixedChannelStatusDataAt(int, byte[])
and setChannelStatusModeAt(int, ChannelStatusModeType)
.
UserDataModeType getUserDataModeAt(@UInt32 int index) throws IndexOutOfBoundsException
Returns the user data mode for the channel of the associated audio essence referenced by the given channel index.
The default value for each element of this property is
UserDataModeType.NotDefined
. If this optional property is omitted, the default
value will be returned.
index
- Channel index to identify the channel to retrieve the user data mode for.
IndexOutOfBoundsException
- The given channel index is outside the acceptable
range for the associated audio essence.SoundDescriptor.getChannelCount()
void setUserDataModeAt(@UInt32 int index, UserDataModeType userDataMode) throws NullPointerException, IndexOutOfBoundsException
Sets the user data mode for the channel of the associated audio essence referenced by the given channel index.
index
- Channel index to identify the channel to set the user data mode for.userDataMode
- Type of user data for the given channel.
IndexOutOfBoundsException
- The given channel index is outside the acceptable
range for the associated audio essence.
NullPointerException
- Cannot set the user data mode for a channel to
null
.SoundDescriptor.getChannelCount()
byte[] getFixedUserDataAt(@UInt32 int index) throws IndexOutOfBoundsException
Returns the AES3 fixed user data for the given channel in the associated audio essence. The value is always a 24-byte array.
The default value for fixed user data on a channel is all zero values, as
represented by AES3DefaultUserData
. If this optional property is not
present, the default value will be returned.
index
- Channel index of the fixed user data to retrieve.
IndexOutOfBoundsException
- The channel number is outside the acceptable range
for the associated audio essence.SoundDescriptor.getChannelCount()
void setFixedUserDataAt(@UInt32 int index, byte[] fixedUserData) throws NullPointerException, IndexOutOfBoundsException, BadSizeException
Sets the AES3 fixed user data for the given channel in the associated audio essence. The value is always a 24-byte array.
index
- Channel index of the fixed user data to set.fixedUserData
- Fixed user data for the given channel number of the associated
audio essence.
NullPointerException
- Cannot set fixed user data to null
.
IndexOutOfBoundsException
- The channel number is outside the acceptable range
for the associated audio essence.
BadSizeException
- The fixed user data value must by a 24-byte array.SoundDescriptor.getChannelCount()
void omitUserData()
Omit the optional fixed user data and user data mode properties from this AES3 PCM descriptor. To make them
present again, call setFixedUserDataAt(int, byte[])
and setUserDataModeAt(int, UserDataModeType)
.
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |