Package tv.porst.swfretools.parser.structures

Examples of tv.porst.swfretools.parser.structures.SoundInfo


   */
  public static DefineButtonSoundTag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UINT16 buttonId = parseUINT16(parser, 0x00006, "DefineButtonSound::ButtonId");
    final UINT16 buttonSoundChar0 = parseUINT16(parser, 0x00006, "DefineButtonSound::ButtonSoundChar0");
    final SoundInfo buttonSoundInfo0 = SoundInfoParser.parseIf(parser, buttonSoundChar0.value() != 0, "DefineButtonSound::ButtonSoundInfo0");
    final UINT16 buttonSoundChar1 = parseUINT16(parser, 0x00006, "DefineButtonSound::ButtonSoundChar1");
    final SoundInfo buttonSoundInfo1 = SoundInfoParser.parseIf(parser, buttonSoundChar1.value() != 0, "DefineButtonSound::ButtonSoundInfo1");
    final UINT16 buttonSoundChar2 = parseUINT16(parser, 0x00006, "DefineButtonSound::ButtonSoundChar2");
    final SoundInfo buttonSoundInfo2 = SoundInfoParser.parseIf(parser, buttonSoundChar2.value() != 0, "DefineButtonSound::ButtonSoundInfo2");
    final UINT16 buttonSoundChar3 = parseUINT16(parser, 0x00006, "DefineButtonSound::ButtonSoundChar3");
    final SoundInfo buttonSoundInfo3 = SoundInfoParser.parseIf(parser, buttonSoundChar3.value() != 0, "DefineButtonSound::ButtonSoundInfo3");

    return new DefineButtonSoundTag(header, buttonId, buttonSoundChar0, buttonSoundInfo0,
        buttonSoundChar1, buttonSoundInfo1, buttonSoundChar2, buttonSoundInfo2,
        buttonSoundChar3, buttonSoundInfo3);
  }
View Full Code Here


   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static StartSound2Tag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final AsciiString soundClassName = parseString(parser, 0x00006, "StartSound2::SoundClassName");
    final SoundInfo soundInfo = SoundInfoParser.parse(parser, "StartSound2::SoundInfo");

    return new StartSound2Tag(header, soundClassName, soundInfo);
  }
View Full Code Here

   * @throws SWFParserException Thrown if parsing the tag failed.
   */
  public static StartSoundTag parse(final RecordHeader header, final SWFBinaryParser parser) throws SWFParserException {

    final UINT16 soundId = parseUINT16(parser, 0x00006, "StartSound::SoundId");
    final SoundInfo soundInfo = SoundInfoParser.parse(parser, "StartSound::SoundInfo");

    return new StartSoundTag(header, soundId, soundInfo);
  }
View Full Code Here

TOP

Related Classes of tv.porst.swfretools.parser.structures.SoundInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.