File: KJDigitalSignalProcessor.java

package info (click to toggle)
libkjdsp-java 1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny, squeeze
  • size: 80 kB
  • ctags: 134
  • sloc: java: 618; xml: 21; sh: 14; makefile: 11
file content (30 lines) | stat: -rw-r--r-- 1,032 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Created on Nov 30, 2004
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package kj.dsp;

/**
 * @author Kris Fudalewski
 * 
 * Classes must implement this interface in order to be registered with the 
 * KJDigitalSignalProcessingAudioDataConsumer class.
 *  
 */
public interface KJDigitalSignalProcessor {

	/**
	 * Called by the KJDigitalSignalProcessingAudioDataConsumer.
	 * 
	 * @param pLeftChannel Audio data for the left channel.
	 * @param pRightChannel Audio data for the right channel.
	 * @param pFrameRateRatioHint A float value representing the ratio of the current
	 *                            frame rate to the desired frame rate. It is used to 
	 *                            keep DSP animation consistent if the frame rate drop
	 *                            below the desired frame rate. 
	 */
	void process( float[] pLeftChannel, float[] pRightChannel, float pFrameRateRatioHint );
	
}