Line | |
---|
1 | package org.apollo.audio;
|
---|
2 |
|
---|
3 | import java.io.PipedInputStream;
|
---|
4 |
|
---|
5 | import javax.sound.sampled.AudioFormat;
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * Provides audio capture classes for reading captured audio.
|
---|
9 | *
|
---|
10 | * @author Brook Novak
|
---|
11 | *
|
---|
12 | */
|
---|
13 | public 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.