source: trunk/src_apollo/org/apollo/audio/AudioCapturePipe.java@ 315

Last change on this file since 315 was 315, checked in by bjn8, 16 years ago

Apollo spin-off added

File size: 689 bytes
Line 
1package org.apollo.audio;
2
3import java.io.PipedInputStream;
4
5import javax.sound.sampled.AudioFormat;
6
7/**
8 * Provides audio capture classes for reading captured audio.
9 *
10 * @author Brook Novak
11 *
12 */
13public final class AudioCapturePipe {
14
15 private PipedInputStream pin;
16 private AudioFormat audioFormat;
17 private int bufferSize;
18
19 public AudioCapturePipe(PipedInputStream pin, AudioFormat audioFormat, int bufferSize) {
20 this.pin = pin;
21 this.audioFormat = audioFormat;
22 this.bufferSize = bufferSize;
23 }
24
25 public AudioFormat getAudioFormat() {
26 return audioFormat;
27 }
28
29 public PipedInputStream getPin() {
30 return pin;
31 }
32
33 public int getBufferSize() {
34 return bufferSize;
35 }
36}
Note: See TracBrowser for help on using the repository browser.