diff options
Diffstat (limited to 'songdbj/javazoom/spi/mpeg/sampled/file/MpegAudioFileFormat.java')
-rw-r--r-- | songdbj/javazoom/spi/mpeg/sampled/file/MpegAudioFileFormat.java | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/songdbj/javazoom/spi/mpeg/sampled/file/MpegAudioFileFormat.java b/songdbj/javazoom/spi/mpeg/sampled/file/MpegAudioFileFormat.java deleted file mode 100644 index afdc4c5e9c..0000000000 --- a/songdbj/javazoom/spi/mpeg/sampled/file/MpegAudioFileFormat.java +++ /dev/null | |||
@@ -1,103 +0,0 @@ | |||
1 | /* | ||
2 | * MpegAudioFileFormat. | ||
3 | * | ||
4 | * JavaZOOM : mp3spi@javazoom.net | ||
5 | * http://www.javazoom.net | ||
6 | * | ||
7 | *----------------------------------------------------------------------- | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU Library General Public License as published | ||
10 | * by the Free Software Foundation; either version 2 of the License, or | ||
11 | * (at your option) any later version. | ||
12 | * | ||
13 | * This program is distributed in the hope that it will be useful, | ||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | * GNU Library General Public License for more details. | ||
17 | * | ||
18 | * You should have received a copy of the GNU Library General Public | ||
19 | * License along with this program; if not, write to the Free Software | ||
20 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
21 | *---------------------------------------------------------------------- | ||
22 | */ | ||
23 | package javazoom.spi.mpeg.sampled.file; | ||
24 | |||
25 | import java.util.Map; | ||
26 | |||
27 | import javax.sound.sampled.AudioFormat; | ||
28 | |||
29 | import org.tritonus.share.sampled.file.TAudioFileFormat; | ||
30 | |||
31 | /** | ||
32 | * @author JavaZOOM | ||
33 | */ | ||
34 | public class MpegAudioFileFormat extends TAudioFileFormat | ||
35 | { | ||
36 | /** | ||
37 | * Contructor. | ||
38 | * @param type | ||
39 | * @param audioFormat | ||
40 | * @param nLengthInFrames | ||
41 | * @param nLengthInBytes | ||
42 | */ | ||
43 | public MpegAudioFileFormat(Type type, AudioFormat audioFormat, int nLengthInFrames, int nLengthInBytes, Map properties) | ||
44 | { | ||
45 | super(type, audioFormat, nLengthInFrames, nLengthInBytes, properties); | ||
46 | } | ||
47 | |||
48 | /** | ||
49 | * MP3 audio file format parameters. | ||
50 | * Some parameters might be unavailable. So availability test is required before reading any parameter. | ||
51 | * | ||
52 | * <br>AudioFileFormat parameters. | ||
53 | * <ul> | ||
54 | * <li><b>duration</b> [Long], duration in microseconds. | ||
55 | * <li><b>title</b> [String], Title of the stream. | ||
56 | * <li><b>author</b> [String], Name of the artist of the stream. | ||
57 | * <li><b>album</b> [String], Name of the album of the stream. | ||
58 | * <li><b>date</b> [String], The date (year) of the recording or release of the stream. | ||
59 | * <li><b>copyright</b> [String], Copyright message of the stream. | ||
60 | * <li><b>comment</b> [String], Comment of the stream. | ||
61 | * </ul> | ||
62 | * <br>MP3 parameters. | ||
63 | * <ul> | ||
64 | * <li><b>mp3.version.mpeg</b> [String], mpeg version : 1,2 or 2.5 | ||
65 | * <li><b>mp3.version.layer</b> [String], layer version 1, 2 or 3 | ||
66 | * <li><b>mp3.version.encoding</b> [String], mpeg encoding : MPEG1, MPEG2-LSF, MPEG2.5-LSF | ||
67 | * <li><b>mp3.channels</b> [Integer], number of channels 1 : mono, 2 : stereo. | ||
68 | * <li><b>mp3.frequency.hz</b> [Integer], sampling rate in hz. | ||
69 | * <li><b>mp3.bitrate.nominal.bps</b> [Integer], nominal bitrate in bps. | ||
70 | * <li><b>mp3.length.bytes</b> [Integer], length in bytes. | ||
71 | * <li><b>mp3.length.frames</b> [Integer], length in frames. | ||
72 | * <li><b>mp3.framesize.bytes</b> [Integer], framesize of the first frame. framesize is not constant for VBR streams. | ||
73 | * <li><b>mp3.framerate.fps</b> [Float], framerate in frames per seconds. | ||
74 | * <li><b>mp3.header.pos</b> [Integer], position of first audio header (or ID3v2 size). | ||
75 | * <li><b>mp3.vbr</b> [Boolean], vbr flag. | ||
76 | * <li><b>mp3.vbr.scale</b> [Integer], vbr scale. | ||
77 | * <li><b>mp3.crc</b> [Boolean], crc flag. | ||
78 | * <li><b>mp3.original</b> [Boolean], original flag. | ||
79 | * <li><b>mp3.copyright</b> [Boolean], copyright flag. | ||
80 | * <li><b>mp3.padding</b> [Boolean], padding flag. | ||
81 | * <li><b>mp3.mode</b> [Integer], mode 0:STEREO 1:JOINT_STEREO 2:DUAL_CHANNEL 3:SINGLE_CHANNEL | ||
82 | * <li><b>mp3.id3tag.genre</b> [String], ID3 tag (v1 or v2) genre. | ||
83 | * <li><b>mp3.id3tag.track</b> [String], ID3 tag (v1 or v2) track info. | ||
84 | * <li><b>mp3.id3tag.encoded</b> [String], ID3 tag v2 encoded by info. | ||
85 | * <li><b>mp3.id3tag.composer</b> [String], ID3 tag v2 composer info. | ||
86 | * <li><b>mp3.id3tag.grouping</b> [String], ID3 tag v2 grouping info. | ||
87 | * <li><b>mp3.id3tag.disc</b> [String], ID3 tag v2 track info. | ||
88 | * <li><b>mp3.id3tag.v2</b> [InputStream], ID3v2 frames. | ||
89 | * <li><b>mp3.id3tag.v2.version</b> [String], ID3v2 major version (2=v2.2.0, 3=v2.3.0, 4=v2.4.0). | ||
90 | * <li><b>mp3.shoutcast.metadata.key</b> [String], Shoutcast meta key with matching value. | ||
91 | * <br>For instance : | ||
92 | * <br>mp3.shoutcast.metadata.icy-irc=#shoutcast | ||
93 | * <br>mp3.shoutcast.metadata.icy-metaint=8192 | ||
94 | * <br>mp3.shoutcast.metadata.icy-genre=Trance Techno Dance | ||
95 | * <br>mp3.shoutcast.metadata.icy-url=http://www.di.fm | ||
96 | * <br>and so on ... | ||
97 | * </ul> | ||
98 | */ | ||
99 | public Map properties() | ||
100 | { | ||
101 | return super.properties(); | ||
102 | } | ||
103 | } | ||