com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class SoundSampleData



  • public class SoundSampleData
    extends Object

    Represents additional entries specific to a sound object (Section 9.2 PDF1-7)

    • Field Detail

      • DEFAULT_SAMPLING_RATE

        public static final long DEFAULT_SAMPLING_RATE

        Default value for SamplingRate.

        See Also:
        Constant Field Values
      • DEFAULT_OF_SOUND_CHANNELS

        public static final int DEFAULT_OF_SOUND_CHANNELS

        Default value for Channels parameter.

        See Also:
        Constant Field Values
      • DEFAULT_OF_BITS_PER_CHANNEL

        public static final int DEFAULT_OF_BITS_PER_CHANNEL

        Default value for BitsPerchannel parameter.

        See Also:
        Constant Field Values
      • DEFAULT_ENCODING_FORMAT

        public static final int DEFAULT_ENCODING_FORMAT

        Default value for encoding format.

        See Also:
        Constant Field Values
    • Constructor Detail

      • SoundSampleData

        public SoundSampleData(long samplingRate)

        Initializes new sound sample data.

        Parameters:
        samplingRate - The sampling rate.
      • SoundSampleData

        public SoundSampleData(long samplingRate,
                       int numberOfSoundChannels)

        Initializes new sound sample data.

        Parameters:
        samplingRate - The sampling rate.
        numberOfSoundChannels - The number of sound channels.
      • SoundSampleData

        public SoundSampleData(long samplingRate,
                       int numberOfSoundChannels,
                       int bitsPerChannel)

        Initializes new sound sample data.

        Parameters:
        samplingRate - The sampling rate.
        numberOfSoundChannels - The number of sound channels.
        bitsPerChannel - The number of bits per sample value per channel.
      • SoundSampleData

        public SoundSampleData(long samplingRate,
                       int numberOfSoundChannels,
                       int bitsPerChannel,
                       int soundSampleDataEncodingFormat)

        Initializes new sound sample data.

        Parameters:
        samplingRate - The sampling rate.
        numberOfSoundChannels - The number of sound channels.
        bitsPerChannel - The number of bits per sample value per channel.
        soundSampleDataEncodingFormat - The encoding format for the sample data.
    • Method Detail

      • getSamplingRate

        public long getSamplingRate()

        Gets the sampling rate.

        Returns:
        long value
      • setSamplingRate

        public void setSamplingRate(long value)

        Sets the sampling rate.

        Parameters:
        value - long value
      • getNumberOfSoundChannels

        public int getNumberOfSoundChannels()

        Gets the number of sound channels.

        Returns:
        int value
      • setNumberOfSoundChannels

        public void setNumberOfSoundChannels(int value)

        Sets the number of sound channels.

        Parameters:
        value - int value
      • getBitsPerChannel

        public int getBitsPerChannel()

        Gets the number of bits per sample value per channel.

        Returns:
        int value
      • setBitsPerChannel

        public void setBitsPerChannel(int value)

        Sets the number of bits per sample value per channel.

        Parameters:
        value - int value
      • getEncodingFormat_Rename_Namesake

        public int getEncodingFormat_Rename_Namesake()

        Gets the encoding format.

        Returns:
        SoundSampleDataEncodingFormat value
        See Also:
        SoundSampleDataEncodingFormat
      • setEncodingFormat

        public void setEncodingFormat(int value)

        Sets the encoding format.

        Parameters:
        value - SoundSampleDataEncodingFormat value
        See Also:
        SoundSampleDataEncodingFormat