Skip to main content

Sound Class

Contains audio data and playback settings for a PDF sound annotation.

Declaration

public class Sound extends JavaObject implements ICloneable

Remarks

Use the setSound(Sound value) method to specify the sound annotation sound.

Implements

com.devexpress.system.ICloneable

Inherited Members

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
com.devexpress.system.JavaObject
Sound

Sound()

Initializes a new instance of the Sound class.

Declaration

public Sound()

Methods

clone(DocumentCloneContext context) Method

Creates a copy of the sound in the specified document clone context.

Declaration

public Sound clone(DocumentCloneContext context)

Parameters

Name Type Description
context DocumentCloneContext

The document clone context.

Returns

Type Description
Sound

A copy of the sound.

deepClone() Method

Creates a deep copy of the sound.

Declaration

public Sound deepClone()

Returns

Type Description
Sound

A deep copy of the sound.

getBitsPerSample() Method

Returns the number of bits per sound sample.

Declaration

public int getBitsPerSample()

Returns

Type Description
int

The number of bits per sound sample.

getData() Method

Returns the sound data.

Declaration

public byte[] getData()

Returns

Type Description
byte[]

The binary sound data.

getEncoding() Method

Returns the sound encoding.

Declaration

public SoundEncoding getEncoding()

Returns

Type Description
SoundEncoding

The sound encoding.

getSamplingRate() Method

Returns the sound sampling rate.

Declaration

public double getSamplingRate()

Returns

Type Description
double

The sound sampling rate.

getSoundChannels() Method

Returns the number of sound channels.

Declaration

public int getSoundChannels()

Returns

Type Description
int

The number of sound channels.

objectClone() Method

Creates an object copy of the sound.

Declaration

public Object objectClone()

Returns

Type Description
Object

A copy of the sound.

setBitsPerSample(int value) Method

Sets the number of bits per sound sample.

Declaration

public void setBitsPerSample(int value)

Parameters

Name Type Description
value int

The number of bits per sound sample.

setData(byte[] value) Method

Sets the sound data.

Declaration

public void setData(byte[] value)

Parameters

Name Type Description
value byte[]

The sound data.

setEncoding(SoundEncoding value) Method

Sets the sound encoding.

Declaration

public void setEncoding(SoundEncoding value)

Parameters

Name Type Description
value SoundEncoding

The sound encoding.

setSamplingRate(double value) Method

Sets the sound sampling rate.

Declaration

public void setSamplingRate(double value)

Parameters

Name Type Description
value double

The sound sampling rate.

setSoundChannels(int value) Method

Sets the number of sound channels.

Declaration

public void setSoundChannels(int value)

Parameters

Name Type Description
value int

The number of sound channels.