jdk/src/share/classes/javax/sound/sampled/spi/FormatConversionProvider.java
changeset 19207 3448b0cb4077
parent 5506 202f599c92aa
child 24561 81c6f1aff26e
equal deleted inserted replaced
19206:a8c2b37d4511 19207:3448b0cb4077
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2003, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   114     /**
   114     /**
   115      * Obtains the set of target format encodings supported by the format converter
   115      * Obtains the set of target format encodings supported by the format converter
   116      * given a particular source format.
   116      * given a particular source format.
   117      * If no target format encodings are supported for this source format,
   117      * If no target format encodings are supported for this source format,
   118      * an array of length 0 is returned.
   118      * an array of length 0 is returned.
       
   119      * @param sourceFormat format of the incoming data
   119      * @return array of supported target format encodings.
   120      * @return array of supported target format encodings.
   120      */
   121      */
   121     public abstract AudioFormat.Encoding[] getTargetEncodings(AudioFormat sourceFormat);
   122     public abstract AudioFormat.Encoding[] getTargetEncodings(AudioFormat sourceFormat);
   122 
   123 
   123 
   124 
   144     /**
   145     /**
   145      * Obtains the set of target formats with the encoding specified
   146      * Obtains the set of target formats with the encoding specified
   146      * supported by the format converter
   147      * supported by the format converter
   147      * If no target formats with the specified encoding are supported
   148      * If no target formats with the specified encoding are supported
   148      * for this source format, an array of length 0 is returned.
   149      * for this source format, an array of length 0 is returned.
       
   150      * @param targetEncoding desired encoding of the stream after processing
       
   151      * @param sourceFormat format of the incoming data
   149      * @return array of supported target formats.
   152      * @return array of supported target formats.
   150      */
   153      */
   151     public abstract AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat);
   154     public abstract AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat);
   152 
   155 
   153 
   156