()
| 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")) { |
no test coverage detected