Urbi SDK Remote for Java  2.7.5
USoundSampleFormat.java
00001 /* ----------------------------------------------------------------------------
00002  * This file was automatically generated by SWIG (http://www.swig.org).
00003  * Version 2.0.4
00004  *
00005  * Do not make changes to this file unless you know what you are doing--modify
00006  * the SWIG interface file instead.
00007  * ----------------------------------------------------------------------------- */
00008 
00009 package urbi;
00010 
00011 public enum USoundSampleFormat {
00012   SAMPLE_SIGNED(1),
00013   SAMPLE_UNSIGNED(2),
00014   SAMPLE_FLOAT(3);
00015 
00016   public final int swigValue() {
00017     return swigValue;
00018   }
00019 
00020   public static USoundSampleFormat swigToEnum(int swigValue) {
00021     USoundSampleFormat[] swigValues = USoundSampleFormat.class.getEnumConstants();
00022     if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00023       return swigValues[swigValue];
00024     for (USoundSampleFormat swigEnum : swigValues)
00025       if (swigEnum.swigValue == swigValue)
00026         return swigEnum;
00027     throw new IllegalArgumentException("No enum " + USoundSampleFormat.class + " with value " + swigValue);
00028   }
00029 
00030   @SuppressWarnings("unused")
00031   private USoundSampleFormat() {
00032     this.swigValue = SwigNext.next++;
00033   }
00034 
00035   @SuppressWarnings("unused")
00036   private USoundSampleFormat(int swigValue) {
00037     this.swigValue = swigValue;
00038     SwigNext.next = swigValue+1;
00039   }
00040 
00041   @SuppressWarnings("unused")
00042   private USoundSampleFormat(USoundSampleFormat swigEnum) {
00043     this.swigValue = swigEnum.swigValue;
00044     SwigNext.next = this.swigValue+1;
00045   }
00046 
00047   private final int swigValue;
00048 
00049   private static class SwigNext {
00050     private static int next = 0;
00051   }
00052 }
00053