Lines Matching refs:sourceFormat
89 public AudioFormat.Encoding[] getTargetEncodings(AudioFormat sourceFormat){
91 if( sourceFormat.getEncoding().equals( AudioFormat.Encoding.PCM_SIGNED )) {
93 if( sourceFormat.getSampleSizeInBits() == 16 ) {
102 } else if( sourceFormat.getEncoding().equals( AudioFormat.Encoding.ALAW ) ) {
104 if( sourceFormat.getSampleSizeInBits() == 8 ) {
121 public AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat){
122 if( (targetEncoding.equals( AudioFormat.Encoding.PCM_SIGNED ) && sourceFormat.getEncoding().equals( AudioFormat.Encoding.ALAW)) ||
123 (targetEncoding.equals( AudioFormat.Encoding.ALAW) && sourceFormat.getEncoding().equals( AudioFormat.Encoding.PCM_SIGNED)) ) {
124 return getOutputFormats( sourceFormat );
133 AudioFormat sourceFormat = sourceStream.getFormat();
134 AudioFormat.Encoding sourceEncoding = sourceFormat.getEncoding();
147 sourceFormat.getSampleRate(),
149 sourceFormat.getChannels(),
150 2*sourceFormat.getChannels(),
151 sourceFormat.getSampleRate(),
152 sourceFormat.isBigEndian());
158 sourceFormat.getSampleRate(),
160 sourceFormat.getChannels(),
161 sourceFormat.getChannels(),
162 sourceFormat.getSampleRate(),