Back to project page rfcx-guardian-android.
The source code is released under:
Apache License
If you think the Android project rfcx-guardian-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * To change this template, choose Tools | Templates * and open the template in the editor.//from w ww.j a v a 2 s .c o m */ package net.sourceforge.javaFlacEncoder; /** * * @author preston */ public class ChannelData { public enum ChannelName { LEFT, RIGHT, MID, SIDE, INDEPENDENT } private int[] samples = null; private int count; private int sampleSize; private ChannelName name; public ChannelData(int[] samples, int count, int sampleSize, ChannelName n) { this.count = count; this.samples = samples; this.sampleSize = sampleSize; this.name = n; } public int[] getSamples() { return samples; } public int getCount() { return count; } public int getSampleSize() { return sampleSize; } public ChannelName getChannelName() { return name; } public int setData(int[] newSamples, int count, int sampleSize, ChannelName n) { samples = newSamples; this.sampleSize = sampleSize; this.name = n; return setCount(count); } public int setCount(int count) { this.count = (count <= samples.length) ? count:samples.length; return this.count; } public void setChannelName(ChannelName cn) { this.name = cn; } }