org.gerhardb.lib.sound
Class SoundPlayer

java.lang.Object
  extended byorg.gerhardb.lib.sound.SoundPlayer
All Implemented Interfaces:
java.util.EventListener, javax.sound.sampled.LineListener, javax.sound.midi.MetaEventListener
Direct Known Subclasses:
ThreadedSoundPlayer

public class SoundPlayer
extends java.lang.Object
implements javax.sound.sampled.LineListener, javax.sound.midi.MetaEventListener

EZ Sound Found Inspired by Sun's demo sound program Juke.java written by Brian Lichtenwalter.


Field Summary
 boolean bump
           
 boolean paused
           
 
Constructor Summary
SoundPlayer()
           
 
Method Summary
 void close()
           
static void main(java.lang.String[] args)
           
 void meta(javax.sound.midi.MetaMessage message)
           
 void play(java.io.File file)
           
 void play(java.net.URL url)
           
 void update(javax.sound.sampled.LineEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bump

public boolean bump

paused

public boolean paused
Constructor Detail

SoundPlayer

public SoundPlayer()
Method Detail

close

public void close()

play

public void play(java.io.File file)

play

public void play(java.net.URL url)

update

public void update(javax.sound.sampled.LineEvent event)
Specified by:
update in interface javax.sound.sampled.LineListener

meta

public void meta(javax.sound.midi.MetaMessage message)
Specified by:
meta in interface javax.sound.midi.MetaEventListener

main

public static void main(java.lang.String[] args)


Copyright © 2002 Gerhard Beck. All rights reserved. Subject to GPL.