diff options
author | Björn Stenberg <bjorn@haxx.se> | 2007-01-08 23:53:00 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2007-01-08 23:53:00 +0000 |
commit | 7039a05147b8bbfc829babea1c65bd436450b505 (patch) | |
tree | 4ba555eb84ed97b72b0575034d5b0530a393713e /songdbj/org/tritonus/share/sampled/file/THeaderlessAudioFileWriter.java | |
parent | 6d4c19707ef95942e323cbdc89fbbfdbe45e7cc5 (diff) | |
download | rockbox-7039a05147b8bbfc829babea1c65bd436450b505.tar.gz rockbox-7039a05147b8bbfc829babea1c65bd436450b505.zip |
Splitting out songdbj
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11953 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'songdbj/org/tritonus/share/sampled/file/THeaderlessAudioFileWriter.java')
-rw-r--r-- | songdbj/org/tritonus/share/sampled/file/THeaderlessAudioFileWriter.java | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/songdbj/org/tritonus/share/sampled/file/THeaderlessAudioFileWriter.java b/songdbj/org/tritonus/share/sampled/file/THeaderlessAudioFileWriter.java deleted file mode 100644 index a9d76de505..0000000000 --- a/songdbj/org/tritonus/share/sampled/file/THeaderlessAudioFileWriter.java +++ /dev/null | |||
@@ -1,84 +0,0 @@ | |||
1 | /* | ||
2 | * THeaderlessAudioFileWriter.java | ||
3 | * | ||
4 | * This file is part of Tritonus: http://www.tritonus.org/ | ||
5 | */ | ||
6 | |||
7 | /* | ||
8 | * Copyright (c) 2000 by Florian Bomers <http://www.bomers.de> | ||
9 | * Copyright (c) 2000 - 2002 by Matthias Pfisterer | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or modify | ||
12 | * it under the terms of the GNU Library General Public License as published | ||
13 | * by the Free Software Foundation; either version 2 of the License, or | ||
14 | * (at your option) any later version. | ||
15 | * | ||
16 | * This program is distributed in the hope that it will be useful, | ||
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | * GNU Library General Public License for more details. | ||
20 | * | ||
21 | * You should have received a copy of the GNU Library General Public | ||
22 | * License along with this program; if not, write to the Free Software | ||
23 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
24 | */ | ||
25 | |||
26 | /* | ||
27 | |<--- this code is formatted to fit into 80 columns --->| | ||
28 | */ | ||
29 | |||
30 | package org.tritonus.share.sampled.file; | ||
31 | |||
32 | import java.io.IOException; | ||
33 | import java.util.Collection; | ||
34 | |||
35 | import javax.sound.sampled.AudioFileFormat; | ||
36 | import javax.sound.sampled.AudioFormat; | ||
37 | |||
38 | import org.tritonus.share.TDebug; | ||
39 | |||
40 | |||
41 | |||
42 | /** Base class for formats without extra header. | ||
43 | This AudioFileWriter is typically used for compressed formats | ||
44 | where the encoder puts a header into the encoded stream. In this | ||
45 | case, the AudioFileWriter needs not to add a header. This is why | ||
46 | THeaderlessAudioOutputStream is used here. | ||
47 | |||
48 | @author Florian Bomers | ||
49 | @author Matthias Pfisterer | ||
50 | */ | ||
51 | public class THeaderlessAudioFileWriter | ||
52 | extends TAudioFileWriter | ||
53 | { | ||
54 | protected THeaderlessAudioFileWriter(Collection<AudioFileFormat.Type> fileTypes, | ||
55 | Collection<AudioFormat> audioFormats) | ||
56 | { | ||
57 | super(fileTypes, audioFormats); | ||
58 | if (TDebug.TraceAudioFileWriter) { TDebug.out("THeaderlessAudioFileWriter.<init>(): begin"); } | ||
59 | if (TDebug.TraceAudioFileWriter) { TDebug.out("THeaderlessAudioFileWriter.<init>(): end"); } | ||
60 | } | ||
61 | |||
62 | |||
63 | |||
64 | protected AudioOutputStream getAudioOutputStream( | ||
65 | AudioFormat audioFormat, | ||
66 | long lLengthInBytes, | ||
67 | AudioFileFormat.Type fileType, | ||
68 | TDataOutputStream dataOutputStream) | ||
69 | throws IOException | ||
70 | { | ||
71 | if (TDebug.TraceAudioFileWriter) { TDebug.out("THeaderlessAudioFileWriter.getAudioOutputStream(): begin"); } | ||
72 | AudioOutputStream aos = new HeaderlessAudioOutputStream( | ||
73 | audioFormat, | ||
74 | lLengthInBytes, | ||
75 | dataOutputStream); | ||
76 | if (TDebug.TraceAudioFileWriter) { TDebug.out("THeaderlessAudioFileWriter.getAudioOutputStream(): end"); } | ||
77 | return aos; | ||
78 | } | ||
79 | |||
80 | } | ||
81 | |||
82 | |||
83 | |||
84 | /*** THeaderlessAudioFileWriter.java ***/ | ||