humble-video-noarch/src/main/java/io/humble/video/AudioChannel.java
public static int getIndexOfChannelInLayout(AudioChannel.Layout layout, AudioChannel.Type channel) {
    return VideoJNI.AudioChannel_getIndexOfChannelInLayout(layout.swigValue(), channel.swigValue());
  }
public static int getIndexOfChannelInLayout(AudioChannel.Layout layout, AudioChannel.Type channel) {
    return VideoJNI.AudioChannel_getIndexOfChannelInLayout(layout.swigValue(), channel.swigValue());
  }
public static int getIndexOfChannelInLayout ( AudioChannel . Layout layout , AudioChannel . Type channel ) { return VideoJNI . AudioChannel_getIndexOfChannelInLayout ( layout . swigValue ( ) , channel . swigValue ( ) ) ; }
Get the index of a channel in channel_layout.<br>
<br>
<p><br>
Use this method to find out which index into channel data corresponds<br>
to the channel you care about. The way you use this differs depending<br>
on whether your audio is packed or planar.  To illustrate, let's assume<br>
you have CH_LAYOUT_STEREO audio, and you ask for the index of CH_FRONT_LEFT,<br>
and we return 1 (indexes are zero based).<br>
</p><p><br>
If packed, then audio is laid out in one big buffer as "RLRLRLRLRLRLRLRL" audio,<br>
and every 2nd (1+1) sample is the left channel<br>
</p><p><br>
If planar, then audio is out in two buffer as "RRRRRRRR" and "LLLLLLLL", and the<br>
second plan (1+1) is the left channel.<br>
</p><br>
<br>
@param channel a channel layout describing exactly one channel which must be<br>
present in channel_layout.<br>
<br>
@return index of channel in channel_layout on success, a negative AVERROR<br>
on error.
Get the index of a channel in channel_layout . <br > <br > <p > <br > Use this method to find out which index into channel data corresponds<br > to the channel you care about . The way you use this differs depending<br > on whether your audio is packed or planar . To illustrate let s assume<br > you have CH_LAYOUT_STEREO audio and you ask for the index of CH_FRONT_LEFT <br > and we return 1 ( indexes are zero based ) . <br > < / p > <p > <br > If packed then audio is laid out in one big buffer as RLRLRLRLRLRLRLRL audio <br > and every 2nd ( 1 + 1 ) sample is the left channel<br > < / p > <p > <br > If planar then audio is out in two buffer as RRRRRRRR and LLLLLLLL and the<br > second plan ( 1 + 1 ) is the left channel . <br > < / p > <br > <br >