1
2 package org.freehep.graphicsio.swf;
3
4 import java.io.IOException;
5
6
7
8
9
10
11
12
13 public class SoundStreamHead2 extends SoundStreamHead {
14
15 public SoundStreamHead2(int playbackSoundRate, boolean playbackSoundStereo,
16 int streamSoundRate, boolean streamSoundStereo, int samples) {
17 this();
18 this.playbackSoundRate = playbackSoundRate;
19 this.playbackSoundSize16 = true;
20 this.playbackSoundStereo = playbackSoundStereo;
21 this.streamSoundCompression = 1;
22 this.streamSoundRate = streamSoundRate;
23 this.streamSoundSize16 = true;
24 this.streamSoundStereo = streamSoundStereo;
25 this.samples = samples;
26 }
27
28 public SoundStreamHead2() {
29 super(45, 3);
30 }
31
32 public SWFTag read(int tagID, SWFInputStream swf, int len)
33 throws IOException {
34
35 SoundStreamHead2 tag = new SoundStreamHead2();
36 tag.read(swf, len);
37 return tag;
38 }
39 }