Update Opus.java with defines

master
sh123 2023-12-09 16:34:51 +02:00
rodzic 6fcf2f38ff
commit 083e996ae6
1 zmienionych plików z 17 dodań i 0 usunięć

Wyświetl plik

@ -9,6 +9,23 @@ public class Opus {
System.loadLibrary("opus");
System.loadLibrary("OpusJNI");
}
// application
public static final int OPUS_APPLICATION_VOIP = 2048;
public static final int OPUS_APPLICATION_AUDIO = 2049;
public static final int OPUS_APPLICATION_RESTRICTED_LOWDELAY = 2051;
// frame sizes
public static final int OPUS_FRAMESIZE_2_5_MS = 5001; /**< Use 2.5 ms frames */
public static final int OPUS_FRAMESIZE_5_MS = 5002; /**< Use 5 ms frames */
public static final int OPUS_FRAMESIZE_10_MS = 5003; /**< Use 10 ms frames */
public static final int OPUS_FRAMESIZE_20_MS = 5004; /**< Use 20 ms frames */
public static final int OPUS_FRAMESIZE_40_MS = 5005; /**< Use 40 ms frames */
public static final int OPUS_FRAMESIZE_60_MS = 5006; /**< Use 60 ms frames */
public static final int OPUS_FRAMESIZE_80_MS = 5007; /**< Use 80 ms frames */
public static final int OPUS_FRAMESIZE_100_MS = 5008; /**< Use 100 ms frames */
public static final int OPUS_FRAMESIZE_120_MS = 5009; /**< Use 120 ms frames */
public native static long create(int sampleRate, int numChannels, int application, int bitrate, int complexity);
public native static int destroy(long con);