Lines Matching defs:sourceFormat
83 public AudioFormat.Encoding[] getTargetEncodings(AudioFormat sourceFormat){
84 if( AudioFormat.Encoding.PCM_SIGNED.equals(sourceFormat.getEncoding()) ) {
85 if( sourceFormat.getSampleSizeInBits() == 16 ) {
92 } else if (AudioFormat.Encoding.ULAW.equals(sourceFormat.getEncoding())) {
93 if (sourceFormat.getSampleSizeInBits() == 8) {
108 public AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat){
110 && AudioFormat.Encoding.ULAW.equals(sourceFormat.getEncoding()))
113 && AudioFormat.Encoding.PCM_SIGNED.equals(sourceFormat.getEncoding()))) {
114 return getOutputFormats(sourceFormat);
123 AudioFormat sourceFormat = sourceStream.getFormat();
124 AudioFormat.Encoding sourceEncoding = sourceFormat.getEncoding();
136 sourceFormat.getSampleRate(),
138 sourceFormat.getChannels(),
139 2*sourceFormat.getChannels(),
140 sourceFormat.getSampleRate(),
141 sourceFormat.isBigEndian());
145 sourceFormat.getSampleRate(),
147 sourceFormat.getChannels(),
148 sourceFormat.getChannels(),
149 sourceFormat.getSampleRate(),