while (iterator.hasNext()) {
message.add(((Double) iterator.next()).floatValue());
}
UdpClient c = new UdpClient(ipAddress, (int) port);
c.send(message.getBytes());
}
public static List<Double> audioAnalysis(String deviceName, String channel, long averages, NodeContext context) {
AudioSource source = (AudioSource) context.getData().get(deviceName + ".source");
if (source == null) return ImmutableList.of();