/** Gets the {@code bitDepth} recorded in the configuration. */ public Integer getBitDepth() { return i(value(getConfig("bitDepth"))); }
/** Gets the {@code bitDepth} recorded in the configuration. */ public Integer getBitDepth() { return i(value(getConfig("bitDepth"))); }
/** * Parses details of the activated channels into the {@link #activeChannels} * data structure from the "channel" entry of the configuration. */ private void parseChannels() { final Value channels = config.get("channel"); if (!(channels instanceof ValueTable)) return; final ValueTable channelsTable = (ValueTable) channels; for (final String key : channelsTable.keySet()) { final Value value = channelsTable.get(key); // verify that the channel is active if (!b(value(value))) continue; // channel not active // parse the channel index (converting to a 1-based index!) final int channelIndex = i(key) + 1; // add the channel index to the active channels list activeChannels.add(channelIndex); } }
/** * Parses details of the activated channels into the {@link #activeChannels} * data structure from the "channel" entry of the configuration. */ private void parseChannels() { final Value channels = config.get("channel"); if (!(channels instanceof ValueTable)) return; final ValueTable channelsTable = (ValueTable) channels; for (final String key : channelsTable.keySet()) { final Value value = channelsTable.get(key); // verify that the channel is active if (!b(value(value))) continue; // channel not active // parse the channel index (converting to a 1-based index!) final int channelIndex = i(key) + 1; // add the channel index to the active channels list activeChannels.add(channelIndex); } }