diff src/com/aurellem/capture/audio/CompositeSoundProcessor.java @ 30:be37291c62b8

propagated AudioFormat to other classes.
author Robert McIntyre <rlm@mit.edu>
date Sun, 30 Oct 2011 10:11:21 -0700
parents 4de7988407ef
children d799a0278cc9
line wrap: on
line diff
     1.1 --- a/src/com/aurellem/capture/audio/CompositeSoundProcessor.java	Sun Oct 30 10:06:38 2011 -0700
     1.2 +++ b/src/com/aurellem/capture/audio/CompositeSoundProcessor.java	Sun Oct 30 10:11:21 2011 -0700
     1.3 @@ -2,6 +2,8 @@
     1.4  
     1.5  import java.nio.ByteBuffer;
     1.6  
     1.7 +import javax.sound.sampled.AudioFormat;
     1.8 +
     1.9  /**
    1.10   * Method of Combination for sound processors.  This SoundProcessor will 
    1.11   * run the methods of each of its constituent SoundProcessors in the order 
    1.12 @@ -18,9 +20,9 @@
    1.13  		this.processors = processors;
    1.14  	}
    1.15  	
    1.16 -	public void process(ByteBuffer audioSamples, int numSamples) {
    1.17 +	public void process(ByteBuffer audioSamples, int numSamples, AudioFormat format) {
    1.18  		for (SoundProcessor sp : processors){
    1.19 -			sp.process(audioSamples, numSamples);
    1.20 +			sp.process(audioSamples, numSamples, format);
    1.21  		}
    1.22  	}
    1.23