|
|||||||||
| Home >> All >> com >> anotherbigidea >> flash >> [ sound overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.anotherbigidea.flash.sound
Class ADPCMHelper

java.lang.Objectcom.anotherbigidea.flash.sound.ADPCMHelper
- public class ADPCMHelper
- extends java.lang.Object
ADPCM Utilities
| Nested Class Summary | |
class |
ADPCMHelper.ADPCMPacket
|
static class |
ADPCMHelper.FramedInputStream
InputStream wrapper that ensures AudioInputStream is read on a frame-by-frame basis |
| Field Summary | |
protected javax.sound.sampled.AudioInputStream |
audioIn
|
protected ADPCMHelper.ADPCMPacket |
currentPacket
|
protected boolean |
is16Bit
|
protected boolean |
isSigned
|
protected boolean |
isStereo
|
protected ADPCMEncodeStream |
leftEncoder
|
protected int |
rate
|
protected ADPCMEncodeStream |
rightEncoder
|
protected int |
sampleCount
|
protected int |
sampleRate
|
protected int |
samplesPerFrame
|
| Constructor Summary | |
ADPCMHelper(java.io.InputStream audioFile,
int framesPerSecond)
|
|
| Method Summary | |
byte[] |
getBlockData(boolean firstBlock)
Streaming block |
com.anotherbigidea.flash.movie.Sound |
getSoundDefinition()
|
SoundStreamHead |
getStreamHeader()
|
static void |
main(java.lang.String[] args)
Makes a non-streaming SWF from a Java Sound compatible audio file. |
static void |
main2(java.lang.String[] args)
Makes a streaming SWF from a Java Sound compatible audio file. |
ADPCMHelper.ADPCMPacket |
readPacket(int packetSize)
|
void |
writePacket(ADPCMHelper.ADPCMPacket packet,
com.anotherbigidea.io.OutStream out,
boolean includeBitCount)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
audioIn
protected javax.sound.sampled.AudioInputStream audioIn
isStereo
protected boolean isStereo
is16Bit
protected boolean is16Bit
sampleRate
protected int sampleRate
rate
protected int rate
samplesPerFrame
protected int samplesPerFrame
isSigned
protected boolean isSigned
sampleCount
protected int sampleCount
leftEncoder
protected ADPCMEncodeStream leftEncoder
rightEncoder
protected ADPCMEncodeStream rightEncoder
currentPacket
protected ADPCMHelper.ADPCMPacket currentPacket
| Constructor Detail |
ADPCMHelper
public ADPCMHelper(java.io.InputStream audioFile, int framesPerSecond) throws java.io.IOException, javax.sound.sampled.UnsupportedAudioFileException
| Method Detail |
getSoundDefinition
public com.anotherbigidea.flash.movie.Sound getSoundDefinition() throws java.io.IOException
readPacket
public ADPCMHelper.ADPCMPacket readPacket(int packetSize) throws java.io.IOException
getBlockData
public byte[] getBlockData(boolean firstBlock)
throws java.io.IOException
- Streaming block
writePacket
public void writePacket(ADPCMHelper.ADPCMPacket packet, com.anotherbigidea.io.OutStream out, boolean includeBitCount) throws java.io.IOException
getStreamHeader
public SoundStreamHead getStreamHeader()
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Makes a non-streaming SWF from a Java Sound compatible audio file.
args[0] = audio in filename
args[1] = SWF out filename
main2
public static void main2(java.lang.String[] args) throws java.lang.Exception
- Makes a streaming SWF from a Java Sound compatible audio file.
args[0] = audio in filename
args[1] = SWF out filename
|
|||||||||
| Home >> All >> com >> anotherbigidea >> flash >> [ sound overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.anotherbigidea.flash.sound.ADPCMHelper