Android Open Source - audiopulse-androidclient Usb Audio Interface






From Project

Back to project page audiopulse-androidclient.

License

The source code is released under:

GNU General Public License

If you think the Android project audiopulse-androidclient listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.audiopulse.io;
// w ww  .j  a  va2  s  .  c  o m
public interface UsbAudioInterface {

  /*
   * Parameters and their units
   * 
   * recfs1 - Recording sampling frequency in kHz
   * playfs2 - playback sampling frequency in kHz
   * recBit - recording bit resolution 
   * playBit - playback bit resolytion 
   * recCh - recording channel configuration 0 - mono, 1 -stereo
   * playCh - playback channel configuration 0- mono 1-stereo
   * 
   * numberOfSweep - number of stimulus presentation (epochs) to be averaged (integer)
   * epochTime - stimulus duration in seconds
   */
  
  
  
  //Initialization should return  0 if successful and >0 if error!
  //Parameters are fetched from the XLM resource file
  public abstract int initialize(int recfs1,int playfs2,
      int recBit, int playBit,int recCh, int playCh);

  public abstract void finish();
  
  //Should we have callbacks?
  public abstract int playMultiTone(double[] Frequency,
      double[] SPL, double epochTime, int numberOfSweeps) throws InterruptedException;
  
  public abstract double[] getAveragedRecordedPowerSpectrum();
  public abstract double[] getAveragedRecordedWaveForm();

  public abstract double getRecFs();
  public abstract double getPlayFs();
  public abstract double getRecBitLength();
  public abstract double getPlayBitLength();
  public abstract double getRecChConfig();
  public abstract double getPlayChConfig();


}




Java Source Code List

org.audiopulse.activities.AudioPulseActivity.java
org.audiopulse.activities.MonitorHandler.java
org.audiopulse.activities.MonitorThread.java
org.audiopulse.activities.PlotSpectralActivity.java
org.audiopulse.activities.TestEarActivity.java
org.audiopulse.activities.UsbTestActivity.java
org.audiopulse.analysis.DPOAEAnalyzer.java
org.audiopulse.analysis.DPOAEResults.java
org.audiopulse.analysis.SignalProcessing.java
org.audiopulse.analysis.SpectralWindows.java
org.audiopulse.graphics.DemoView.java
org.audiopulse.graphics.PlotSpectralView.java
org.audiopulse.hardware.APulseIface.java
org.audiopulse.hardware.USBIface.java
org.audiopulse.io.AudioPulseFilePackager.java
org.audiopulse.io.AudioPulseFileWriter.java
org.audiopulse.io.UsbAudioEmulator.java
org.audiopulse.io.UsbAudioInterface.java