public class SoundSampleData extends Object
Represents additional entries specific to a sound object (Section 9.2 PDF1-7)
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ENCODING_FORMAT
Default value for encoding format.
|
static int |
DEFAULT_OF_BITS_PER_CHANNEL
Default value for BitsPerchannel parameter.
|
static int |
DEFAULT_OF_SOUND_CHANNELS
Default value for Channels parameter.
|
static long |
DEFAULT_SAMPLING_RATE
Default value for SamplingRate.
|
Constructor and Description |
---|
SoundSampleData(long samplingRate)
Initializes new sound sample data.
|
SoundSampleData(long samplingRate,
int numberOfSoundChannels)
Initializes new sound sample data.
|
SoundSampleData(long samplingRate,
int numberOfSoundChannels,
int bitsPerChannel)
Initializes new sound sample data.
|
SoundSampleData(long samplingRate,
int numberOfSoundChannels,
int bitsPerChannel,
int soundSampleDataEncodingFormat)
Initializes new sound sample data.
|
Modifier and Type | Method and Description |
---|---|
int |
getBitsPerChannel()
Gets or sets the number of bits per sample value per channel.
|
int |
getEncodingFormat_Rename_Namesake()
Gets or sets the encoding format.
|
int |
getNumberOfSoundChannels()
Gets or sets the number of sound channels.
|
long |
getSamplingRate()
Gets or sets the sampling rate.
|
void |
setBitsPerChannel(int value) |
void |
setEncodingFormat(int value) |
void |
setNumberOfSoundChannels(int value) |
void |
setSamplingRate(long value) |
public static final long DEFAULT_SAMPLING_RATE
Default value for SamplingRate.
public static final int DEFAULT_OF_SOUND_CHANNELS
Default value for Channels parameter.
public static final int DEFAULT_OF_BITS_PER_CHANNEL
Default value for BitsPerchannel parameter.
public static final int DEFAULT_ENCODING_FORMAT
Default value for encoding format.
public SoundSampleData(long samplingRate)
Initializes new sound sample data.
samplingRate
- The sampling rate.public SoundSampleData(long samplingRate, int numberOfSoundChannels)
Initializes new sound sample data.
samplingRate
- The sampling rate.numberOfSoundChannels
- The number of sound channels.public SoundSampleData(long samplingRate, int numberOfSoundChannels, int bitsPerChannel)
Initializes new sound sample data.
samplingRate
- The sampling rate.numberOfSoundChannels
- The number of sound channels.bitsPerChannel
- The number of bits per sample value per channel.public SoundSampleData(long samplingRate, int numberOfSoundChannels, int bitsPerChannel, int soundSampleDataEncodingFormat)
Initializes new sound sample data.
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.public long getSamplingRate()
Gets or sets the sampling rate.
public void setSamplingRate(long value)
public int getNumberOfSoundChannels()
Gets or sets the number of sound channels.
public void setNumberOfSoundChannels(int value)
public int getBitsPerChannel()
Gets or sets the number of bits per sample value per channel.
public void setBitsPerChannel(int value)
public int getEncodingFormat_Rename_Namesake()
Gets or sets the encoding format.
public void setEncodingFormat(int value)
Copyright © 2014 Aspose. All Rights Reserved.