@@ -0,0 +1,1201 @@
+package com.vaadin.addon.audio.shared;%0A%0Aimport java.io.Serializable;%0A%0A/**%0A * Format parameters for PCM data%0A */%0A@SuppressWarnings(%22serial%22)%0Apublic class PCMFormat implements Serializable %7B%0A%0A%09private int numChannels;   // 1: mono, 2: stereo%0A%09private int sampleRate;    // samples (values) per second of audio%0A%09private int byteRate;      // sampleRate * numChannels * (bitsPerSample / 8)%0A%09private int blockAlign;    // numChannels * (bitsPerSample / 8)%0A%09private int bitsPerSample; // usually either 8 or 16%0A%0A%09public int getNumChannels() %7B%0A%09%09return numChannels;%0A%09%7D%0A%0A%09public int getSampleRate() %7B%0A%09%09return sampleRate;%0A%09%7D%0A%0A%09public int getByteRate() %7B%0A%09%09return byteRate;%0A%09%7D%0A%0A%09public int getBlockAlign() %7B%0A%09%09return blockAlign;%0A%09%7D%0A%0A%09public int getBitsPerSample() %7B%0A%09%09return bitsPerSample;%0A%09%7D%0A%0A%09public void setNumChannels(int numChannels) %7B%0A%09%09this.numChannels = numChannels;%0A%09%7D%0A%0A%09public void setSampleRate(int sampleRate) %7B%0A%09%09this.sampleRate = sampleRate;%0A%09%7D%0A%0A%09public void setByteRate(int byteRate) %7B%0A%09%09this.byteRate = byteRate;%0A%09%7D%0A%0A%09public void setBlockAlign(int blockAlign) %7B%0A%09%09this.blockAlign = blockAlign;%0A%09%7D%0A%0A%09public void setBitsPerSample(int bitsPerSample) %7B%0A%09%09this.bitsPerSample = bitsPerSample;%0A%09%7D%0A%0A%7D%0A%0A

Add PCM format descriptor object