Example usage for android.media AudioFormat CHANNEL_INVALID

List of usage examples for android.media AudioFormat CHANNEL_INVALID

Introduction

In this page you can find the example usage for android.media AudioFormat CHANNEL_INVALID.

Prototype

int CHANNEL_INVALID

To view the source code for android.media AudioFormat CHANNEL_INVALID.

Click Source Link

Document

Invalid audio channel mask

Usage

From source file:Main.java

public static int outChannelMaskFromInChannelMask(int channelMask) {
    switch (channelMask) {
    case AudioFormat.CHANNEL_IN_MONO:
        return AudioFormat.CHANNEL_OUT_MONO;
    case AudioFormat.CHANNEL_IN_STEREO:
        return AudioFormat.CHANNEL_OUT_STEREO;
    default:/*  w ww  .j  a  va2s  . co  m*/
        return AudioFormat.CHANNEL_INVALID;
    }
}