SoundData
Inheritance: java.lang.Object
public final class SoundData
Represents a sound data defining the sound to be played when the annotation is activated.
Methods
Method | Description |
---|---|
getRate() | Gets the sampling rate, in samples per second. |
setRate(int value) | Sets the sampling rate, in samples per second. |
getChannels() | Gets the number of sound channels. |
setChannels(int value) | Sets the number of sound channels. |
getBits() | Gets the number of bits per sample value per channel. |
setBits(int value) | Sets the number of bits per sample value per channel. |
getContents() | Gets stream of the sound to be played when the annotation is activated. |
getContentsInternal() | Gets stream of the sound to be played when the annotation is activated. |
getEncoding() | Gets the encoding format for the sample data. |
setEncoding(int value) | Sets the encoding format for the sample data. |
getRate()
public int getRate()
Gets the sampling rate, in samples per second.
Returns: int - int value
setRate(int value)
public void setRate(int value)
Sets the sampling rate, in samples per second.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | int value |
getChannels()
public int getChannels()
Gets the number of sound channels.
Returns: int - The number of sound channels.
setChannels(int value)
public void setChannels(int value)
Sets the number of sound channels.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | The number of sound channels. |
getBits()
public int getBits()
Gets the number of bits per sample value per channel.
Returns: int - int value number of bits
setBits(int value)
public void setBits(int value)
Sets the number of bits per sample value per channel.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | number of bits |
getContents()
public InputStream getContents()
Gets stream of the sound to be played when the annotation is activated.
Returns: java.io.InputStream - InputStream value
getContentsInternal()
public System.IO.Stream getContentsInternal()
Gets stream of the sound to be played when the annotation is activated.
Returns: com.aspose.ms.System.IO.Stream - Stream value
getEncoding()
public int getEncoding()
Gets the encoding format for the sample data.
Returns: int - SoundEncoding value
setEncoding(int value)
public void setEncoding(int value)
Sets the encoding format for the sample data.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | SoundEncoding value |