|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--utils.SoundPlayer
Title: the Wondrous Farm
Description: Classe permettant de jouer des sons de type WAV, AU ou MIDI.
Copyright: Copyright (c) 2002
Company: minfo
Field Summary | |
private InputStream |
ais
|
private com.sun.media.sound.JavaSoundAudioClip |
clip
|
Fields inherited from class java.lang.Thread |
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ |
Constructor Summary | |
SoundPlayer(URL sndURL)
L'URL passée en paramètre contient bien sur le fichier son. Si on veut jouer le fichier toto.wav qui se trouve dans
C:\MesSons , l'URL est file:/C:/MesSons/toto.wav |
Method Summary | |
void |
play()
Jouer le son. |
void |
stopPlaying()
Arréter de le jouer. |
Methods inherited from class java.lang.Thread |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private InputStream ais
private com.sun.media.sound.JavaSoundAudioClip clip
Constructor Detail |
public SoundPlayer(URL sndURL)
toto.wav
qui se trouve dans
C:\MesSons
, l'URL est file:/C:/MesSons/toto.wav
sndURL:
- là où se trouve le fichier sonore.Method Detail |
public void play()
public void stopPlaying()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |