equal
deleted
inserted
replaced
31 /** |
31 /** |
32 * WAVE file format class. |
32 * WAVE file format class. |
33 * |
33 * |
34 * @author Jan Borgersen |
34 * @author Jan Borgersen |
35 */ |
35 */ |
36 final class WaveFileFormat extends AudioFileFormat { |
36 final class WaveFileFormat extends StandardFileFormat { |
37 |
37 |
38 /** |
38 /** |
39 * Wave format type. |
39 * Wave format type. |
40 */ |
40 */ |
41 private final int waveType; |
41 private final int waveType; |
71 static final int WAVE_IBM_FORMAT_ADPCM = 0x0103; |
71 static final int WAVE_IBM_FORMAT_ADPCM = 0x0103; |
72 static final int WAVE_FORMAT_DVI_ADPCM = 0x0011; |
72 static final int WAVE_FORMAT_DVI_ADPCM = 0x0011; |
73 static final int WAVE_FORMAT_SX7383 = 0x1C07; |
73 static final int WAVE_FORMAT_SX7383 = 0x1C07; |
74 static final int WAVE_FORMAT_EXTENSIBLE= 0xFFFE; |
74 static final int WAVE_FORMAT_EXTENSIBLE= 0xFFFE; |
75 |
75 |
76 WaveFileFormat(AudioFileFormat.Type type, int lengthInBytes, AudioFormat format, int lengthInFrames) { |
76 WaveFileFormat(final AudioFileFormat.Type type, final long byteLength, |
77 |
77 final AudioFormat format, final long frameLength) { |
78 super(type,lengthInBytes,format,lengthInFrames); |
78 super(type, byteLength, format, frameLength); |
79 |
79 |
80 AudioFormat.Encoding encoding = format.getEncoding(); |
80 AudioFormat.Encoding encoding = format.getEncoding(); |
81 |
81 |
82 if( encoding.equals(AudioFormat.Encoding.ALAW) ) { |
82 if( encoding.equals(AudioFormat.Encoding.ALAW) ) { |
83 waveType = WAVE_FORMAT_ALAW; |
83 waveType = WAVE_FORMAT_ALAW; |