AudioCapabilities(int[] supportedEncodings,int maxChannelCount){
  if (supportedEncodings != null) {
    this.supportedEncodings=Arrays.copyOf(supportedEncodings,supportedEncodings.length);
    Arrays.sort(this.supportedEncodings);
  }
 else {
    this.supportedEncodings=new int[0];
  }
  this.maxChannelCount=maxChannelCount;
}

AudioCapabilities ( int [ ] supportedEncodings , int maxChannelCount ) { if ( supportedEncodings != null ) { this . supportedEncodings = Arrays . copyOf ( supportedEncodings , supportedEncodings . length ) ; Arrays . sort ( this . supportedEncodings ) ; } else { this . supportedEncodings = new int [ 0 ] ; } this . maxChannelCount = maxChannelCount ; }
constructs new audio capabilities based on a set of supported encodings and a maximum channel count .
