Package com.anotherbigidea.flash.sound

Examples of com.anotherbigidea.flash.sound.SoundDefinition


  private final List<SoundDefinition> orderedSounds = new ArrayList<SoundDefinition>();

  public void assimilate(TreeLogger logger, String name, URL resource)
      throws UnableToCompleteException {
    try {
      SoundDefinition def;

      if (ResourceGeneratorUtil.baseName(resource).endsWith("mp3")) {
        // MP3's are special-cased
        def = MP3Helper.getSoundDefinition(resource.openStream());
View Full Code Here


  /**
   * Return the duration in seconds of the named sound.
   */
  public long getDuration(String name) {
    SoundDefinition def = sounds.get(name);
    switch (def.frequency) {
      case SWFConstants.SOUND_FREQ_44KHZ:
        return 1000L * def.sampleCount / 44000;
      case SWFConstants.SOUND_FREQ_22KHZ:
        return 1000L * def.sampleCount / 22000;
View Full Code Here

TOP

Related Classes of com.anotherbigidea.flash.sound.SoundDefinition

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.