1 /* 2 * Copyright 2020 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.hyphonate.megaaudio.common; 17 18 public class BuilderBase { 19 //TODO exlain the structure of these constants 20 // API Types - enumerated in high nibble 21 public static final int TYPE_MASK = 0xF000; 22 public static final int TYPE_UNDEFINED = 0xF000; 23 public static final int TYPE_NONE = 0x0000; 24 public static final int TYPE_JAVA = 0x1000; 25 public static final int TYPE_OBOE = 0x2000; 26 27 // API subtypes - enumerated in low nibble 28 public static final int SUB_TYPE_MASK = 0x0000F; 29 public static final int SUB_TYPE_OBOE_DEFAULT = 0x0000; 30 public static final int SUB_TYPE_OBOE_AAUDIO = 0x0001; 31 public static final int SUB_TYPE_OBOE_OPENSL_ES = 0x0002; 32 33 protected int mType = TYPE_UNDEFINED; 34 } 35