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 the number of bits per sample value per channel.
|
int |
getEncodingFormat_Rename_Namesake()
Gets the encoding format.
|
int |
getNumberOfSoundChannels()
Gets the number of sound channels.
|
long |
getSamplingRate()
Gets the sampling rate.
|
void |
setBitsPerChannel(int value)
Sets the number of bits per sample value per channel.
|
void |
setEncodingFormat(int value)
Sets the encoding format.
|
void |
setNumberOfSoundChannels(int value)
Sets the number of sound channels.
|
void |
setSamplingRate(long value)
Sets the sampling rate.
|
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 the sampling rate.
public void setSamplingRate(long value)
Sets the sampling rate.
value
- long valuepublic int getNumberOfSoundChannels()
Gets the number of sound channels.
public void setNumberOfSoundChannels(int value)
Sets the number of sound channels.
value
- int valuepublic int getBitsPerChannel()
Gets the number of bits per sample value per channel.
public void setBitsPerChannel(int value)
Sets the number of bits per sample value per channel.
value
- int valuepublic int getEncodingFormat_Rename_Namesake()
Gets the encoding format.
SoundSampleDataEncodingFormat
public void setEncodingFormat(int value)
Sets the encoding format.
value
- SoundSampleDataEncodingFormat valueSoundSampleDataEncodingFormat