com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class SoundData



  • public final class SoundData
    extends Object

    Represents a sound data defining the sound to be played when the annotation is activated.

    • Method Detail

      • getRate

        public int getRate()

        Gets the sampling rate, in samples per second.

        Returns:
        int value
      • setRate

        public void setRate(int value)

        Sets the sampling rate, in samples per second.

        Parameters:
        value - int value
      • getChannels

        public int getChannels()

        Gets the number of sound channels.

        Returns:
        The number of sound channels.
      • setChannels

        public void setChannels(int value)

        Sets the number of sound channels.

        Parameters:
        value - The number of sound channels.
      • getBits

        public int getBits()

        Gets the number of bits per sample value per channel.

        Returns:
        int value number of bits
      • setBits

        public void setBits(int value)

        Sets the number of bits per sample value per channel.

        Parameters:
        value - number of bits
      • getContents

        public InputStream getContents()

        Gets stream of the sound to be played when the annotation is activated.

        Returns:
        InputStream value
      • getContentsInternal

        public com.aspose.ms.System.IO.Stream getContentsInternal()

        Gets stream of the sound to be played when the annotation is activated.

        Returns:
        Stream value
      • getEncoding

        public int getEncoding()

        Gets the encoding format for the sample data.

        Returns:
        SoundEncoding value
        See Also:
        SoundEncoding
      • setEncoding

        public void setEncoding(int value)

        Sets the encoding format for the sample data.

        Parameters:
        value - SoundEncoding value
        See Also:
        SoundEncoding