|
Copyright 2013-01-06 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.monte.media.eightsvx.JDK10AudioClip
public class JDK10AudioClip
A JDK 1.0 compatible audio clip for signed linear 8 encoded audio PCM samples.
| Field Summary |
|---|
| Fields inherited from interface org.monte.media.eightsvx.LoopableAudioClip |
|---|
LOOP_CONTINUOUSLY |
| Constructor Summary | |
|---|---|
JDK10AudioClip(byte[] samples,
int sampleRate)
For constructing directly from Jar entries, or any other raw Audio data. |
|
| Method Summary | |
|---|---|
void |
loop()
|
void |
loop(int count)
Starts looping playback from the current position. |
void |
play()
|
void |
stop()
|
static void |
writeSunAudioHeader(byte[] data,
int sampleRate,
int datasize)
Overwrites the 24 first bites of the provided data array with a sun audio header. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JDK10AudioClip(byte[] samples,
int sampleRate)
| Method Detail |
|---|
public void play()
play in interface java.applet.AudioClippublic void loop()
loop in interface java.applet.AudioClippublic void loop(int count)
count times, and finally continue playback to the end of
the clip.
If the current position when this method is invoked is greater than the loop end point, playback simply continues to the end of the clip without looping.
A count value of 0 indicates that any current looping should
cease and playback should continue to the end of the clip. The behavior
is undefined when this method is invoked with any other value during a
loop operation.
If playback is stopped during looping, the current loop status is cleared; the behavior of subsequent loop and start requests is not affected by an interrupted loop operation.
loop in interface LoopableAudioClipcount - the number of times playback should loop back from the
loop's end position to the loop's start position, or
LoopableAudioClip.LOOP_CONTINUOUSLY to indicate that looping should
continue until interruptedpublic void stop()
stop in interface java.applet.AudioClip
public static void writeSunAudioHeader(byte[] data,
int sampleRate,
int datasize)
|
Copyright 2013-01-06 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||