Java Code Examples for android.media.AudioFormat#ENCODING_AC3

The following examples show how to use android.media.AudioFormat#ENCODING_AC3 . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MediaPlayer.java    From libvlc-android-sdk with GNU Lesser General Public License v2.1 5 votes vote down vote up
private boolean isEncoded(int encoding) {
    switch (encoding) {
        case AudioFormat.ENCODING_AC3:
        case AudioFormat.ENCODING_E_AC3:
        case 14 /* AudioFormat.ENCODING_DOLBY_TRUEHD */:
        case AudioFormat.ENCODING_DTS:
        case AudioFormat.ENCODING_DTS_HD:
            return true;
        default:
            return false;
    }
}
 
Example 2
Source File: MediaPlayer.java    From OTTLivePlayer_vlc with MIT License 5 votes vote down vote up
private boolean isEncoded(int encoding) {
    switch (encoding) {
        case AudioFormat.ENCODING_AC3:
        case AudioFormat.ENCODING_E_AC3:
        case 14 /* AudioFormat.ENCODING_DOLBY_TRUEHD */:
        case AudioFormat.ENCODING_DTS:
        case AudioFormat.ENCODING_DTS_HD:
            return true;
        default:
            return false;
    }
}
 
Example 3
Source File: MediaPlayer.java    From OTTLivePlayer_vlc with MIT License 5 votes vote down vote up
private boolean isEncoded(int encoding) {
    switch (encoding) {
        case AudioFormat.ENCODING_AC3:
        case AudioFormat.ENCODING_E_AC3:
        case 14 /* AudioFormat.ENCODING_DOLBY_TRUEHD */:
        case AudioFormat.ENCODING_DTS:
        case AudioFormat.ENCODING_DTS_HD:
            return true;
        default:
            return false;
    }
}
 
Example 4
Source File: MediaPlayer.java    From vlc-example-streamplayer with GNU General Public License v3.0 5 votes vote down vote up
private boolean isEncoded(int encoding) {
    switch (encoding) {
        case AudioFormat.ENCODING_AC3:
        case AudioFormat.ENCODING_E_AC3:
        case 14 /* AudioFormat.ENCODING_DOLBY_TRUEHD */:
        case AudioFormat.ENCODING_DTS:
        case AudioFormat.ENCODING_DTS_HD:
            return true;
        default:
            return false;
    }
}
 
Example 5
Source File: MediaPlayer.java    From libvlc-sdk-android with GNU General Public License v2.0 5 votes vote down vote up
private boolean isEncoded(int encoding) {
    switch (encoding) {
        case AudioFormat.ENCODING_AC3:
        case AudioFormat.ENCODING_E_AC3:
        case 14 /* AudioFormat.ENCODING_DOLBY_TRUEHD */:
        case AudioFormat.ENCODING_DTS:
        case AudioFormat.ENCODING_DTS_HD:
            return true;
        default:
            return false;
    }
}