MCPcopy Create free account
hub / github.com/zhuker/lamejs / getEffectiveEncoding

Method getEffectiveEncoding

src/main/java/lowlevel/LameEncoder.java:585–596  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

583 }
584
585 public AudioFormat.Encoding getEffectiveEncoding() {
586 if (effEncoding == MPEG_VERSION_2) {
587 if (getEffectiveSampleRate() < 16000) {
588 return MPEG2DOT5L3;
589 }
590 return MPEG2L3;
591 } else if (effEncoding == MPEG_VERSION_2DOT5) {
592 return MPEG2DOT5L3;
593 }
594 // default
595 return MPEG1L3;
596 }
597
598 private int string2quality(String quality, int def) {
599 if (quality.equals("lowest")) {

Callers 1

getEffectiveFormatMethod · 0.95

Calls 1

Tested by

no test coverage detected