src/main/java/org/jcodec/codecs/aac/blocks/BlockPCE.java
private void decodeChannelMap(ChannelMapping layout_map[], int offset, ChannelPosition type, BitReader _in, int n) {
        while (n-- > 0) {
            RawDataBlockType syn_ele = null;
            switch (type) {
            case AAC_CHANNEL_FRONT:
            case AAC_CHANNEL_BACK:
            case AAC_CHANNEL_SIDE:
                syn_ele = RawDataBlockType.values()[_in.read1Bit()];
                break;
            case AAC_CHANNEL_CC:
                _in.read1Bit();
                syn_ele = RawDataBlockType.TYPE_CCE;
                break;
            case AAC_CHANNEL_LFE:
                syn_ele = RawDataBlockType.TYPE_LFE;
                break;
            }
            layout_map[offset].syn_ele = syn_ele;
            layout_map[offset].someInt = (int) _in.readNBit(4);
            layout_map[offset].position = type;
            offset++;
        }
    }
private void decodeChannelMap(ChannelMapping layout_map[], int offset, ChannelPosition type, BitReader _in, int n) {
        while (n-- > 0) {
            RawDataBlockType syn_ele = null;
            switch (type) {
            case AAC_CHANNEL_FRONT:
            case AAC_CHANNEL_BACK:
            case AAC_CHANNEL_SIDE:
                syn_ele = RawDataBlockType.values()[_in.read1Bit()];
                break;
            case AAC_CHANNEL_CC:
                _in.read1Bit();
                syn_ele = RawDataBlockType.TYPE_CCE;
                break;
            case AAC_CHANNEL_LFE:
                syn_ele = RawDataBlockType.TYPE_LFE;
                break;
            }
            layout_map[offset].syn_ele = syn_ele;
            layout_map[offset].someInt = (int) _in.readNBit(4);
            layout_map[offset].position = type;
            offset++;
        }
    }
private void decodeChannelMap ( ChannelMapping layout_map [ ] , int offset , ChannelPosition type , BitReader _in , int n ) { while ( n -- > 0 ) { RawDataBlockType syn_ele = null ; switch ( type ) { case AAC_CHANNEL_FRONT : case AAC_CHANNEL_BACK : case AAC_CHANNEL_SIDE : syn_ele = RawDataBlockType . values ( ) [ _in . read1Bit ( ) ] ; break ; case AAC_CHANNEL_CC : _in . read1Bit ( ) ; syn_ele = RawDataBlockType . TYPE_CCE ; break ; case AAC_CHANNEL_LFE : syn_ele = RawDataBlockType . TYPE_LFE ; break ; } layout_map [ offset ] . syn_ele = syn_ele ; layout_map [ offset ] . someInt = ( int ) _in . readNBit ( 4 ) ; layout_map [ offset ] . position = type ; offset ++ ; } }
Decode an array of 4 bit element IDs, optionally interleaved with a
stereo/mono switching bit.

@throws IOException
Decode an array of 4 bit element IDs optionally interleaved with a stereo / mono switching bit .