View Javadoc

1   // Copyright 2001, FreeHEP.
2   package org.freehep.graphicsio.swf;
3   
4   import java.io.IOException;
5   
6   /**
7    * SoundStreamHead2 TAG.
8    * 
9    * @author Mark Donszelmann
10   * @author Charles Loomis
11   * @version $Id: SoundStreamHead2.java 8584 2006-08-10 23:06:37Z duns $
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  }