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

Method string2chmode

src/main/java/lowlevel/LameEncoder.java:628–641  ·  view source on GitHub ↗
(String chmode, int def)

Source from the content-addressed store, hash-verified

626 }
627
628 private int string2chmode(String chmode, int def) {
629 if (chmode.equals("stereo")) {
630 return CHANNEL_MODE_STEREO;
631 } else if (chmode.equals("jointstereo")) {
632 return CHANNEL_MODE_JOINT_STEREO;
633 } else if (chmode.equals("dual")) {
634 return CHANNEL_MODE_DUAL_CHANNEL;
635 } else if (chmode.equals("mono")) {
636 return CHANNEL_MODE_MONO;
637 } else if (chmode.equals("auto")) {
638 return CHANNEL_MODE_AUTO;
639 }
640 return def;
641 }
642
643 /**
644 * @return true if val is starts with t or y or on, false if val starts with

Callers 1

readPropsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected