|
Media Authoring with Java API |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objecttv.amwa.maj.entity.InterchangeObject
tv.amwa.maj.entity.EssenceDescriptor
tv.amwa.maj.entity.AAFFileDescriptor
tv.amwa.maj.entity.SoundDescriptor
tv.amwa.maj.entity.PCMDescriptor
@AAFClass(uuid1=218169601,
uuid2=257,
uuid3=18432,
uuid4={6,14,43,52,2,6,1,1},
definedName="PCMDescriptor",
description="The PCMDescriptor class specifies that a File SourceMob is associated with audio essence formatted according to the BWF File Format.")
public class PCMDescriptor
Implements the description of a file source mob that is associated with audio essence formatted according to the BWF file format.
THE COMMENTS FOR THIS CLASS ARE INCOMPLETE.
BWFImportDescriptor,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
PCMDescriptor.XMLHandler
|
| Nested classes/interfaces inherited from class tv.amwa.maj.entity.AAFFileDescriptor |
|---|
AAFFileDescriptor.FileDescriptorXMLHandler |
| Nested classes/interfaces inherited from class tv.amwa.maj.entity.EssenceDescriptor |
|---|
EssenceDescriptor.EssenceDescriptorXMLHandler, EssenceDescriptor.LocatorXMLHandler, EssenceDescriptor.SubDescriptorXMLHandler |
| Nested classes/interfaces inherited from class tv.amwa.maj.entity.InterchangeObject |
|---|
InterchangeObject.InterchangeObjectXMLHandler |
| Field Summary | |
|---|---|
static String |
PCMDESCRIPTOR_TAG
|
| Fields inherited from class tv.amwa.maj.entity.SoundDescriptor |
|---|
SOUNDDESCRIPTOR_TAG |
| Fields inherited from class tv.amwa.maj.entity.AAFFileDescriptor |
|---|
FILEDESCRIPTOR_ITEM |
| Fields inherited from class tv.amwa.maj.entity.EssenceDescriptor |
|---|
ESSENCEDESCRIPTOR_ITEM |
| Constructor Summary | |
|---|---|
PCMDescriptor(ContainerDefinition containerFormat,
Rational audioSamplingRate,
int channels,
int quantizationBits,
short blockAlign,
int averageBPS)
Creates and initializes a new PCM sound descriptor, which is associated with audio essence formatted according to the BWF File Format. |
|
| Method Summary | |
|---|---|
void |
appendXMLChildren(Node parent)
Append child elements to the given parent node to serialize the value of an object to an XML fragment. |
boolean |
areAllPeakEnvelopePropertiesPresent()
Returns true if all the following optional properties are
set for this PCM descriptor: |
PCMDescriptor |
clone()
Creates a cloned copy of this entity. |
boolean |
equals(Object o)
Tests to see if the given object is equal to this interchange object. |
int |
getAverageBPS()
Returns the average bytes per second of the essence stream described by this PCM descriptor. |
short |
getBlockAlign()
Returns the number of bytes used to store one sample of all channels of data associated with this PCM descriptor. |
AUID |
getChannelAssignment()
Returns the channel assignment scheme for this PCM descriptor. |
int |
getPeakChannelCount()
Returns the number of peak channels for this PCM descriptor. |
int |
getPeakEnvelopeBlockSize()
Returns the number of audio samples used to generate each peak frame for this PCM descriptor. |
byte[] |
getPeakEnvelopeData()
|
long |
getPeakEnvelopeDataPosition()
Returns the offset from the beginning of the peak envelope data for this PCM descriptor. |
long |
getPeakEnvelopeDataSize()
Returns the size of the peak envelope data of this PCM descriptor. |
int |
getPeakEnvelopeFormat()
Returns the format of the peak point for this PCM descriptor. |
TimeStamp |
getPeakEnvelopeTimestamp()
Returns the time stamp for the date and time of the creation of this peak data for this PCM descriptor. |
int |
getPeakEnvelopeVersion()
Returns the version information of the peak envelope data of this PCM descriptor. |
int |
getPeakFrameCount()
Returns the number of peak frames for this PCM descriptor. |
long |
getPeakOfPeaksPosition()
Returns the offset to the first audio sample whose absolute value is the maximum value of the entire audio file represented by this PCM descriptor. |
int |
getPointsPerPeakValue()
Returns the number of peak points per peak value for this PCM descriptor. |
byte |
getSequenceOffset()
Returns the frame number of the beginning of the essence data within a five-frame sequence for this PCM descriptor. |
int |
hashCode()
Returns a hash code value for this interchange object. |
byte[] |
readPeakEnvelopeData(int bytes)
Read the given number of bytes of data from the peak envelope data stream of this PCM descriptor at the PCMDescriptor.getPeakEnvelopeDataPosition()
current position. |
void |
setAverageBPS(int bps)
Sets the average bytes per second of the essence stream described by this PCM descriptor. |
void |
setBlockAlign(short blockAlign)
Sets the number of bytes used to store one sample of all channels of data associated with this PCM descriptor. |
void |
setChannelAssignment(AUID channelAssignment)
Sets the channel assignment scheme of this PCM descriptor. |
void |
setPeakChannelCount(Integer channelCount)
Sets the number of peak channels for this PCM descriptor. |
void |
setPeakEnvelopeBlockSize(Integer blockSize)
Sets the number of audio samples used to generate each peak frame for this PCM descriptor. |
void |
setPeakEnvelopeData(byte[] peakEnvelopeData)
|
void |
setPeakEnvelopeDataPosition(long position)
Sets the offset from the beginning of the peak envelope data for this PCM descriptor. |
void |
setPeakEnvelopeFormat(Integer format)
Sets the format of the peak point for this PCM descriptor. |
void |
setPeakEnvelopeTimestamp(TimeStamp timeStamp)
Sets the time stamp for the date and time of the creation of the peak data for the PCM descriptor. |
void |
setPeakEnvelopeVersion(Integer version)
Sets the version information of the peak envelope data of this PCM descriptor. |
void |
setPeakFrameCount(Integer frameCount)
Sets the number of peak frames for this PCM descriptor. |
void |
setPeakOfPeaksPosition(Long position)
Sets the offset to the first audio sample whose absolute value is the maximum value of the entire audio file described by this PCM descriptor. |
void |
setPointsPerPeakValue(Integer pointCount)
Sets the number of peak points per peak value for this PCM descriptor. |
void |
setPropertiesFromInterface(PCMDescriptor castFrom)
|
void |
setSequenceOffset(Byte offset)
Sets the frame number of the beginning of the essence data within a five-frame sequence for this PCM descriptor. |
int |
writePeakEnvelopeData(byte[] bytes)
Write the given bytes to the peak envelope data stream of the PCM descriptor at the current position, as determined by calling PCMDescriptor.getPeakEnvelopeDataPosition(). |
| Methods inherited from class tv.amwa.maj.entity.SoundDescriptor |
|---|
getAudioRefLevel, getAudioSamplingRate, getChannelCount, getCompression, getDialNorm, getElectroSpatialFormulation, getIsLocked, getQuantizationBits, isLocked, setAudioRefLevel, setAudioSamplingRate, setChannelCount, setCompression, setDialNorm, setElectroSpatialFormulation, setIsLocked, setPropertiesFromInterface, setQuantizationBits |
| Methods inherited from class tv.amwa.maj.entity.AAFFileDescriptor |
|---|
describesStaticEssence, getCodecDefinition, getContainerFormat, getLength, getLinkedSlotID, getSampleRate, setCodecDefinition, setContainerFormat, setDescribesStaticEssence, setDescribesTimeVaryingEssence, setLength, setLinkedSlotID, setPropertiesFromInterface, setSampleRate |
| Methods inherited from class tv.amwa.maj.entity.EssenceDescriptor |
|---|
appendLocator, appendSubDescriptor, countLocators, countSubDescriptors, getLocatorAt, getLocators, getSubDescriptorAt, getSubDescriptors, insertLocatorAt, insertSubDescriptorAt, prependLocator, prependSubDescriptor, removeLocatorAt, removeSubDescriptorAt, setPropertiesFromInterface |
| Methods inherited from class tv.amwa.maj.entity.InterchangeObject |
|---|
castFromInterface, countProperties, createOptionalPropertyValue, disableGenerationTracking, enableGenerationTracking, getDefinition, getGeneration, getGenerationAUID, getProperties, getPropertyValue, isGenerationTracked, isPropertyPresent, omitOpionalProperty, registerImplementation, setPropertiesFromInterface, setPropertyValue, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| 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 |
| Methods inherited from interface tv.amwa.maj.entity.MAJCommon |
|---|
toString |
| Field Detail |
|---|
public static final String PCMDESCRIPTOR_TAG
| Constructor Detail |
|---|
public PCMDescriptor(ContainerDefinition containerFormat,
Rational audioSamplingRate,
@UInt32
int channels,
@UInt32
int quantizationBits,
@UInt16
short blockAlign,
@UInt32
int averageBPS)
throws NullPointerException,
IllegalArgumentException
Creates and initializes a new PCM sound descriptor, which is associated with audio essence formatted according to the BWF File Format.
containerFormat - Identifies the container mechanism used to store the essence.audioSamplingRate - Sampling rate of the audio essence.channels - Number of audio channels.quantizationBits - Number of quantization bits.blockAlign - Sample block alignment.averageBPS - Average bytes per second.
NullPointerException - The container format or sampling rate properties are
null.
IllegalArgumentException - Cannot set the channels, quantization bits, block align
or average bits per second values to negative values.| Method Detail |
|---|
public final void setPropertiesFromInterface(PCMDescriptor castFrom)
InterchangeObject.setPropertiesFromInterface(tv.amwa.maj.iface.InterchangeObject)public boolean areAllPeakEnvelopePropertiesPresent()
PCMDescriptorReturns true if all the following optional properties are
set for this PCM descriptor:
PCMDescriptor.setPeakEnvelopeVersion(Integer)PCMDescriptor.setPeakEnvelopeFormat(Integer)PCMDescriptor.setPointsPerPeakValue(Integer)PCMDescriptor.setPeakEnvelopeBlockSize(Integer)PCMDescriptor.setPeakChannelCount(Integer)PCMDescriptor.setPeakChannelCount(Integer)PCMDescriptor.setPeakOfPeaksPosition(Long)PCMDescriptor.setPeakEnvelopeTimestamp(TimeStamp)PCMDescriptor.setPeakEnvelopeDataPosition(long),
PCMDescriptor.getPeakEnvelopeDataSize(), PCMDescriptor.writePeakEnvelopeData(byte[]) and
PCMDescriptor.readPeakEnvelopeData(int).
areAllPeakEnvelopePropertiesPresent in interface PCMDescriptor
@AAFProperty(uuid1=67240707,
uuid2=1280,
uuid3=0,
uuid4={6,14,43,52,1,1,1,5},
definedName="AverageBPS",
typeName="UInt32",
optional=false,
uniqueIdentifier=false,
pid=15625)
public int getAverageBPS()
PCMDescriptorReturns the average bytes per second of the essence stream described by this PCM descriptor.
getAverageBPS in interface PCMDescriptor
public void setAverageBPS(int bps)
throws IllegalArgumentException
PCMDescriptorSets the average bytes per second of the essence stream described by this PCM descriptor. This property is required.
setAverageBPS in interface PCMDescriptorbps - Average bytes per second of the essence stream.
IllegalArgumentException - The given average bytes per second
value is negative.
@AAFProperty(uuid1=67240706,
uuid2=256,
uuid3=0,
uuid4={6,14,43,52,1,1,1,5},
definedName="BlockAlign",
typeName="UInt16",
optional=false,
uniqueIdentifier=false,
pid=15626)
public short getBlockAlign()
PCMDescriptorReturns the number of bytes used to store one sample of all channels of data associated with this PCM descriptor. This property is required.
getBlockAlign in interface PCMDescriptor
public void setBlockAlign(short blockAlign)
throws IllegalArgumentException
PCMDescriptorSets the number of bytes used to store one sample of all channels of data associated with this PCM descriptor. This property is required.
setBlockAlign in interface PCMDescriptorblockAlign - The number of bytes used to store one sample of all
channels.
IllegalArgumentException - The given block align value is negative.
@AAFProperty(uuid1=67240193,
uuid2=1280,
uuid3=0,
uuid4={6,14,43,52,1,1,1,7},
definedName="ChannelAssignment",
typeName="AUID",
optional=true,
uniqueIdentifier=false,
pid=15666)
public AUID getChannelAssignment()
PCMDescriptorReturns the channel assignment scheme for this PCM descriptor. An example of this would be an AUID representing "SMPTE 320M-B". This property is optional and has a default value of "SMPTE 320M-B".
getChannelAssignment in interface PCMDescriptorpublic void setChannelAssignment(AUID channelAssignment)
PCMDescriptorSets the channel assignment scheme of this PCM descriptor. An
example of this would be an AUID
representing "SMPTE 320M-B". This
property is optional and set by default to the identifier for
"SMPTE 320M-B". Calling this method with null will
restore the default value.
setChannelAssignment in interface PCMDescriptorchannelAssignment - Channel assignment to use for this PCM descriptor.
@AAFProperty(uuid1=67240705,
uuid2=2560,
uuid3=0,
uuid4={6,14,43,52,1,1,1,8},
definedName="PeakChannels",
typeName="UInt32",
optional=true,
uniqueIdentifier=false,
pid=15661)
public int getPeakChannelCount()
throws PropertyNotPresentException
PCMDescriptorReturns the number of peak channels for this PCM descriptor. This property is optional.
getPeakChannelCount in interface PCMDescriptorPropertyNotPresentException - The optional peak channels property is not
present in this PCM descriptor.
public void setPeakChannelCount(Integer channelCount)
throws IllegalArgumentException
PCMDescriptorSets the number of peak channels for this PCM descriptor. Set this optional
property of null to omit it.
setPeakChannelCount in interface PCMDescriptorchannelCount - Number of peak channels for this PCM descriptor.
IllegalArgumentException - Cannot set the peak channels property
of this PCM descriptor to a negative value.
@AAFProperty(uuid1=67240705,
uuid2=2304,
uuid3=0,
uuid4={6,14,43,52,1,1,1,8},
definedName="PeakEnvelopeBlockSize",
typeName="UInt32",
optional=true,
uniqueIdentifier=false,
pid=15660)
public int getPeakEnvelopeBlockSize()
throws PropertyNotPresentException
PCMDescriptorReturns the number of audio samples used to generate each peak frame for this PCM descriptor. This property is optional.
getPeakEnvelopeBlockSize in interface PCMDescriptorPropertyNotPresentException - The optional peak envelope block size property is not
present in this PCM descriptor.
public void setPeakEnvelopeBlockSize(Integer blockSize)
throws IllegalArgumentException
PCMDescriptorSets the number of audio samples used to generate each peak
frame for this PCM descriptor. Set this optional property to null
to omit it.
setPeakEnvelopeBlockSize in interface PCMDescriptorblockSize - Number of audio samples used to generate each peak
frame for this PCM descriptor.
IllegalArgumentException - The given peak envelope block size is negative.public long getPeakEnvelopeDataPosition()
PCMDescriptorReturns the offset from the beginning of the peak envelope data
for this PCM descriptor. This transient property is used to define
the point at which peak envelope data is read or written.
getPeakEnvelopeDataPosition in interface PCMDescriptorpublic void setPeakEnvelopeDataPosition(long position)
PCMDescriptorSets the offset from the beginning of the peak envelope data for this PCM descriptor. This property is optional and is used to define the point at which peak envelope data is read or written.
setPeakEnvelopeDataPosition in interface PCMDescriptorposition - Offset from the beginning of the peak envelope data
for this PCM descriptor.
public long getPeakEnvelopeDataSize()
throws PropertyNotPresentException
PCMDescriptorReturns the size of the peak envelope data of this PCM
descriptor. This peak envelope data property is optional. The value returned
can be useful when working out how many bytes to
read from the stream of peak
envelope data.
getPeakEnvelopeDataSize in interface PCMDescriptorPropertyNotPresentException - The optional peak envelope data property is not
present in this PCM descriptor.
@AAFProperty(uuid1=67240705,
uuid2=1792,
uuid3=0,
uuid4={6,14,43,52,1,1,1,8},
definedName="PeakEnvelopeFormat",
typeName="UInt32",
optional=true,
uniqueIdentifier=false,
pid=15658)
public int getPeakEnvelopeFormat()
throws PropertyNotPresentException
PCMDescriptorReturns the format of the peak point for this PCM descriptor. This property is optional.
getPeakEnvelopeFormat in interface PCMDescriptorPropertyNotPresentException - The optional peak envelope format property is not
present in this PCM descriptor.
public void setPeakEnvelopeFormat(Integer format)
throws IllegalArgumentException
PCMDescriptorSets the format of the peak point for this PCM descriptor.
Set this optional property to null to omit it.
setPeakEnvelopeFormat in interface PCMDescriptorformat - Format of the peak point for this PCM descriptor.
IllegalArgumentException - The given peak envelope format is
negative.
@AAFProperty(uuid1=67240705,
uuid2=3328,
uuid3=0,
uuid4={6,14,43,52,1,1,1,8},
definedName="PeakEnvelopeTimestamp",
typeName="TimeStamp",
optional=true,
uniqueIdentifier=false,
pid=15664)
public TimeStamp getPeakEnvelopeTimestamp()
throws PropertyNotPresentException
PCMDescriptorReturns the time stamp for the date and time of the creation of this peak data for this PCM descriptor. This property is optional.
getPeakEnvelopeTimestamp in interface PCMDescriptorPropertyNotPresentException - This optional property is not
present in this PCM descriptor.PCMDescriptor.areAllPeakEnvelopePropertiesPresent(),
TimeStamp.getTimeStamp()public void setPeakEnvelopeTimestamp(TimeStamp timeStamp)
PCMDescriptorSets the time stamp for the date and time of
the creation of the peak data for the PCM descriptor. Set this optional property to
null to omit it.
setPeakEnvelopeTimestamp in interface PCMDescriptortimeStamp - Time stamp of the creation of the peak data for the
PCM descriptor.TimeStamp.TimeStamp(java.util.Calendar),
TimeStamp.parseTimeStamp(String),
PCMDescriptor.areAllPeakEnvelopePropertiesPresent()
@AAFProperty(uuid1=67240705,
uuid2=1536,
uuid3=0,
uuid4={6,14,43,52,1,1,1,8},
definedName="PeakEnvelopeVersion",
typeName="UInt32",
optional=true,
uniqueIdentifier=false,
pid=15657)
public int getPeakEnvelopeVersion()
throws PropertyNotPresentException
PCMDescriptorReturns the version information of the peak envelope data of this PCM descriptor. This property is optional.
getPeakEnvelopeVersion in interface PCMDescriptorPropertyNotPresentException - The optional peak envelope version property is not
present in this PCM descriptor.
public void setPeakEnvelopeVersion(Integer version)
throws IllegalArgumentException
PCMDescriptorSets the version information of the peak envelope data of this PCM
descriptor. Set this optional property to null to omit it.
setPeakEnvelopeVersion in interface PCMDescriptorversion - Version information of the peak envelope data of this PCM
descriptor.
IllegalArgumentException - Cannot set the peak envelope version
property of this PCM descriptor to a negative value.
@AAFProperty(uuid1=67240705,
uuid2=2816,
uuid3=0,
uuid4={6,14,43,52,1,1,1,8},
definedName="PeakFrames",
typeName="UInt32",
optional=true,
uniqueIdentifier=false,
pid=15662)
public int getPeakFrameCount()
throws PropertyNotPresentException
PCMDescriptorReturns the number of peak frames for this PCM descriptor. This property is optional.
getPeakFrameCount in interface PCMDescriptorPropertyNotPresentException - This optional peak of peaks property is not
present in this PCM descriptor.
public void setPeakFrameCount(Integer frameCount)
throws IllegalArgumentException
PCMDescriptorSets the number of peak frames for this PCM descriptor. Set this optional
property to null to omit it.
setPeakFrameCount in interface PCMDescriptorframeCount - Number of peak frames for this PCM descriptor.
IllegalArgumentException - The given peak frames count is negative.
@AAFProperty(uuid1=67240705,
uuid2=3072,
uuid3=0,
uuid4={6,14,43,52,1,1,1,8},
definedName="PeakOfPeaksPosition",
typeName="PositionType",
optional=true,
uniqueIdentifier=false,
pid=15663)
public long getPeakOfPeaksPosition()
throws PropertyNotPresentException
PCMDescriptorReturns the offset to the first audio sample whose absolute value is the maximum value of the entire audio file represented by this PCM descriptor. This property is optional.
getPeakOfPeaksPosition in interface PCMDescriptorPropertyNotPresentException - The optional peak of peaks position property
is not present in this PCM descriptor.public void setPeakOfPeaksPosition(Long position)
PCMDescriptorSets the offset to the first audio sample whose absolute
value is the maximum value of the entire audio file described by
this PCM descriptor. Set this optional property to null to
omit it.
setPeakOfPeaksPosition in interface PCMDescriptorposition - Peak of peaks position in the described audio essence.
@AAFProperty(uuid1=67240705,
uuid2=2048,
uuid3=0,
uuid4={6,14,43,52,1,1,1,8},
definedName="PointsPerPeakValue",
typeName="UInt32",
optional=true,
uniqueIdentifier=false,
pid=15659)
public int getPointsPerPeakValue()
throws PropertyNotPresentException
PCMDescriptorReturns the number of peak points per peak value for this PCM descriptor. This value is optional.
getPointsPerPeakValue in interface PCMDescriptorPropertyNotPresentException - The optional points per peak value property is not
present in this PCM descriptor.
public void setPointsPerPeakValue(Integer pointCount)
throws IllegalArgumentException
PCMDescriptorSets the number of peak points per peak value for this PCM
descriptor. Set this optional property to null to omit it.
setPointsPerPeakValue in interface PCMDescriptorpointCount - Number of peak points per peak value for this PCM
descriptor.
IllegalArgumentException - The given number of peak points per peak
value is negative.
@AAFProperty(uuid1=67240706,
uuid2=512,
uuid3=0,
uuid4={6,14,43,52,1,1,1,5},
definedName="SequenceOffset",
typeName="UInt8",
optional=true,
uniqueIdentifier=false,
pid=15627)
public byte getSequenceOffset()
throws PropertyNotPresentException
PCMDescriptorReturns the frame number of the beginning of the essence data within a five-frame sequence for this PCM descriptor. This property is optional and zero-based.
getSequenceOffset in interface PCMDescriptorPropertyNotPresentException - This optional property is not
present in this PCM descriptor.
public void setSequenceOffset(Byte offset)
throws IllegalArgumentException
PCMDescriptorSets the frame number of the beginning of the essence data
within a five-frame sequence for this PCM descriptor. This property
is optional and zero-based. Set to null omit it.
setSequenceOffset in interface PCMDescriptoroffset - Frame number of the beginning of the essence data
within a five-frame sequence.
IllegalArgumentException - The given sequence offset value is
negative.
@AAFProperty(uuid1=67240705,
uuid2=3584,
uuid3=0,
uuid4={6,14,43,52,1,1,1,8},
definedName="PeakEnvelopeData",
typeName="Stream",
optional=true,
uniqueIdentifier=false,
pid=15665)
public byte[] getPeakEnvelopeData()
throws PropertyNotPresentException
PropertyNotPresentExceptionpublic void setPeakEnvelopeData(byte[] peakEnvelopeData)
public byte[] readPeakEnvelopeData(int bytes)
throws EndOfDataException,
PropertyNotPresentException
PCMDescriptorRead the given number of bytes of data from the peak envelope
data stream of this PCM descriptor at the PCMDescriptor.getPeakEnvelopeDataPosition()
current position.
readPeakEnvelopeData in interface PCMDescriptorbytes - Number of bytes to read.
EndOfDataException - Attempt to read beyond the end of the
peak envelope data.
PropertyNotPresentException - The optional peak envelope data property is not
present in this PCM descriptor.
public int writePeakEnvelopeData(byte[] bytes)
throws PropertyNotPresentException,
ContainerWriteException
PCMDescriptorWrite the given bytes to the peak envelope data stream of the
PCM descriptor at the current position, as determined by calling
PCMDescriptor.getPeakEnvelopeDataPosition().
writePeakEnvelopeData in interface PCMDescriptorbytes - Data to write to the peak envelope data stream of this
PCM descriptor.
PropertyNotPresentException - The optional peak envelope data property is not present in
this PCM descriptor and so cannot be written to.
ContainerWriteException - Writing to the container failed.public boolean equals(Object o)
MAJCommonTests to see if the given object is equal to this interchange object. To be equal, the given value must be not null, share the same interface to its value and each of the properties of the value must each be equal.
equals in interface MAJCommonequals in class SoundDescriptoro - Object to test for equality with.
Object.equals(Object)public int hashCode()
MAJCommonReturns a hash code value for this interchange object.
hashCode in interface MAJCommonhashCode in class SoundDescriptorObject.hashCode()public PCMDescriptor clone()
MAJCommonCreates a cloned copy of this entity. The clone will be initialized to have the same value as this value but exists independently from then on. Changes to this value will not effect the clone and changes to the clone will not effect this. MAJ API clones are true deep clones with no shared references to areas of memory within the original.
This method does not throw a CloneNotSupportedException as all
entity values must implement the Cloneable interface. If a cloning
error does occur, a null value will be returned but this is very unlikely
to happen.
clone in interface MAJCommonclone in class SoundDescriptorObject.clone()public void appendXMLChildren(Node parent)
XMLSerializableAppend child elements to the given parent node to serialize the value of an object
to an XML fragment. Methods of the XMLBuilder class are provided to help with this
process.
appendXMLChildren in interface XMLSerializableappendXMLChildren in class SoundDescriptorparent - XML parent element to append child nodes to.
|
Media Authoring with Java API |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||