Searched defs:sourceFormat (Results 1 - 7 of 7) sorted by relevance
/openjdk7/jdk/src/share/classes/com/sun/media/sound/ |
H A D | SunCodec.java | 79 public abstract AudioFormat.Encoding[] getTargetEncodings(AudioFormat sourceFormat); argument 84 public abstract AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat); argument
|
H A D | AlawCodec.java | 89 public AudioFormat.Encoding[] getTargetEncodings(AudioFormat sourceFormat){ argument 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){ argument 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 [all...] |
H A D | UlawCodec.java | 83 public AudioFormat.Encoding[] getTargetEncodings(AudioFormat sourceFormat){ argument 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){ argument 110 && AudioFormat.Encoding.ULAW.equals(sourceFormat.getEncoding())) 113 && AudioFormat.Encoding.PCM_SIGNED.equals(sourceFormat.getEncoding()))) { 114 return getOutputFormats(sourceFormat); 123 AudioFormat sourceFormat [all...] |
H A D | AudioFloatFormatConverter.java | 270 AudioFormat sourceFormat = ais.getFormat(); 271 targetFormat = new AudioFormat(sourceFormat.getEncoding(), format 272 .getSampleRate(), sourceFormat.getSampleSizeInBits(), 273 sourceFormat.getChannels(), sourceFormat.getFrameSize(), 274 format.getSampleRate(), sourceFormat.isBigEndian()); 297 pitch[0] = sourceFormat.getSampleRate() / format.getSampleRate(); 532 public Encoding[] getTargetEncodings(AudioFormat sourceFormat) { argument 533 if (AudioFloatConverter.getConverter(sourceFormat) == null) 540 AudioFormat sourceFormat) { 539 getTargetFormats(Encoding targetEncoding, AudioFormat sourceFormat) argument 593 isConversionSupported(AudioFormat targetFormat, AudioFormat sourceFormat) argument 606 isConversionSupported(Encoding targetEncoding, AudioFormat sourceFormat) argument [all...] |
H A D | PCMtoPCMCodec.java | 72 public AudioFormat.Encoding[] getTargetEncodings(AudioFormat sourceFormat){ argument 74 if( sourceFormat.getEncoding().equals( AudioFormat.Encoding.PCM_SIGNED ) || 75 sourceFormat.getEncoding().equals( AudioFormat.Encoding.PCM_UNSIGNED ) ) { 89 public AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat){ argument 91 // filter out targetEncoding from the old getOutputFormats( sourceFormat ) method 93 AudioFormat[] formats = getOutputFormats( sourceFormat ); 117 AudioFormat sourceFormat = sourceStream.getFormat(); 119 sourceFormat.getSampleRate(), 120 sourceFormat.getSampleSizeInBits(), 121 sourceFormat [all...] |
/openjdk7/jdk/src/share/classes/javax/sound/sampled/spi/ |
H A D | FormatConversionProvider.java | 121 public abstract AudioFormat.Encoding[] getTargetEncodings(AudioFormat sourceFormat); argument 128 * @param sourceFormat format of the incoming data 131 public boolean isConversionSupported(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat){ argument 133 AudioFormat.Encoding targetEncodings[] = getTargetEncodings(sourceFormat); 151 public abstract AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat); argument 158 * @param sourceFormat format of the incoming data 161 public boolean isConversionSupported(AudioFormat targetFormat, AudioFormat sourceFormat){ argument 163 AudioFormat targetFormats[] = getTargetFormats( targetFormat.getEncoding(), sourceFormat );
|
/openjdk7/jdk/src/share/classes/javax/sound/sampled/ |
H A D | AudioSystem.java | 791 * @param sourceFormat the audio format for which conversion 793 * @return array of encodings. If <code>sourceFormat</code>is not supported, 795 * of at least 1, representing the encoding of <code>sourceFormat</code> (no conversion). 797 public static AudioFormat.Encoding[] getTargetEncodings(AudioFormat sourceFormat) { argument 810 encs = ((FormatConversionProvider) codecs.get(i)).getTargetEncodings(sourceFormat); 833 * @param sourceFormat the audio format before conversion 837 public static boolean isConversionSupported(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat) { argument 844 if(codec.isConversionSupported(targetEncoding,sourceFormat) ) { 885 * @param sourceFormat the audio format before conversion 889 public static AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat) { argument 929 isConversionSupported(AudioFormat targetFormat, AudioFormat sourceFormat) argument [all...] |
Completed in 63 milliseconds