public class Audio
extends java.lang.Object
Audio
object allows you to access a Cumulus audio field. The audio data is compressed using one of the components installed into Apple's
QuickTime system.Constructor and Description |
---|
Audio(byte[] pack)
Creates a new
Audio object from a pack array. |
Audio(Pack pack)
Creates a new
Audio object from a pack. |
Modifier and Type | Method and Description |
---|---|
byte[] |
getAudio()
Returns the compressed audio data.
|
int |
getBitsPerSample()
Returns the number of bits per sample.
|
int |
getCompressor()
Returns the compression mode.
|
byte[] |
getData()
Returns the
Audio field as binary data. |
int |
getDuration()
Returns the sound duration in milliseconds.
|
int |
getNbChannel()
Returns the number of channels.
|
int |
getRate()
Returns the sample rate.
|
public Audio(byte[] pack)
Audio
object from a pack array.pack
- a pack array obtained from a call to Item.getBinaryValue(GUID)
.public Audio(Pack pack)
Audio
object from a pack.pack
- an audio pack initialized with the result of a call to Item.getBinaryValue(GUID)
.public int getCompressor() throws CumulusException
CumulusException
- if this information is not available.public int getRate() throws CumulusException
CumulusException
- if this information is not available.public int getBitsPerSample() throws CumulusException
CumulusException
- if this information is not available.public int getNbChannel() throws CumulusException
CumulusException
- if this information is not available.public byte[] getAudio() throws CumulusException
CumulusException
- if this information is not available.public int getDuration() throws CumulusException
CumulusException
- if this information is not available.public byte[] getData()
Audio
field as binary data.Audio
field as binary data.www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.