Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.SoundClip
Source: src/com/multiversesocial/hyperview/SoundClip.java

SoundClip

HyperView V3.2 — class
version V3.2 class

Summary

Try DocumentBase first Try CodeBase second Try local file as fallback

Source file: SoundClip.java

Hierarchy

Extends: none

Implements: AudioClip

Referenced HyperView classes

Media files used

Declaration & members

public class SoundClip implements AudioClip

Declared in src/com/multiversesocial/hyperview/SoundClip.java, lines 6–102. 1 field(s), 1 constructor(s), 3 method(s). Every member has an anchor you can link to (e.g. SoundClip.html#<id>).

Fields (1)

DeclarationValue / initializerDescriptionSource
private Clip clipNo comment in source; assigned in SoundClip(); used in play(), loop(), halt().line 8

Constructors (1)

SignatureDescriptionSource
public SoundClip(String name, Orange orange)2 statement(s); calls super(), HyperView.resolveResourceURLStatic(), orange.getDocumentBase(), orange.getCodeBase(), f.exists() …; creates URL, java.io.File, AudioFormat.line 10

Methods (3)

SignatureDescriptionSource
public void halt()1 statement(s); calls clip.stop().
Implements AudioClip.halt()
line 95
public void loop()1 statement(s); calls clip.loop().
Implements AudioClip.loop()
line 87
public void play()1 statement(s); calls clip.setFramePosition(), clip.start().
Implements AudioClip.play()
line 78

Examples

Real usage taken from elsewhere in the HyperView 3.2 source (file and line shown; source path src/com/multiversesocial/hyperview/).

instantiation — Asteroids.java, line 418

  418  fireSound[i] = new SoundClip("photon.au", curView);

Applet hosting

SoundClip is part of how HyperView hosts application-level applets (with some modifications). See the Applet Migration Guide.

Hits--