source: trunk/src_apollo/org/apollo/io/LoadedAudioData.java@ 315

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

Apollo spin-off added

File size: 676 bytes
Line 
1package org.apollo.io;
2
3import javax.sound.sampled.AudioFormat;
4
5/**
6 * Immutable class storing loaded audio information.
7 *
8 * @author Brook Novak
9 *
10 */
11public final class LoadedAudioData {
12
13 private byte[] audioBytes;
14 private AudioFormat audioFormat;
15 private boolean wasConverted;
16
17 public LoadedAudioData(byte[] audioBytes, AudioFormat audioFormat, boolean wasConverted) {
18 this.audioBytes = audioBytes;
19 this.audioFormat = audioFormat;
20 this.wasConverted = wasConverted;
21 }
22
23 public byte[] getAudioBytes() {
24 return audioBytes;
25 }
26
27 public AudioFormat getAudioFormat() {
28 return audioFormat;
29 }
30
31 public boolean wasConverted() {
32 return wasConverted;
33 }
34
35
36}
Note: See TracBrowser for help on using the repository browser.