Lines Matching refs:AudioCodec
32 * AudioCodec codec = AudioCodec.getCodec(100, "AMR/8000", "mode-set=1");
37 public class AudioCodec {
56 public static final AudioCodec PCMU = new AudioCodec(0, "PCMU/8000", null);
61 public static final AudioCodec PCMA = new AudioCodec(8, "PCMA/8000", null);
67 public static final AudioCodec GSM = new AudioCodec(3, "GSM/8000", null);
73 public static final AudioCodec GSM_EFR = new AudioCodec(96, "GSM-EFR/8000", null);
80 public static final AudioCodec AMR = new AudioCodec(97, "AMR/8000", null);
82 private static final AudioCodec[] sCodecs = {GSM_EFR, AMR, GSM, PCMU, PCMA};
84 private AudioCodec(int type, String rtpmap, String fmtp) {
93 public static AudioCodec[] getCodecs() {
98 * Creates an AudioCodec according to the given configuration.
105 * @return The configured AudioCodec or {@code null} if it is not supported.
107 public static AudioCodec getCodec(int type, String rtpmap, String fmtp) {
112 AudioCodec hint = null;
115 for (AudioCodec codec : sCodecs) {
125 for (AudioCodec codec : sCodecs) {
144 return new AudioCodec(type, rtpmap, fmtp);