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