Package client.teavm
Klasse ImportedApiWav
java.lang.Object
client.teavm.ImportedApiWav
- Alle implementierten Schnittstellen:
IImportedApi
WAV file implementation of
IImportedApi.
This class implements audio output to a DataOutputStream in the standard RIFF/WAVE format. It is used
for capturing high-quality PCM audio streams during playback.
Audio Output
- Format: 16-bit signed PCM, 2 channels (stereo).
- Sampling rate: Configurable during initialization.
- Direct output: Audio samples are written directly to the provided output stream with correct little-endian byte ordering for WAV files.
Limitations
This implementation only supports audio sample processing. Other functionality like video frame, oscilloscope, and printer output are ignored.
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunginitFrameBuffer(int maxWidth, int maxHeight) initGaugeBuffer(String type, int chipNum, int pathLength) initSampleBuffer(int chunkFrames, int channels) initWhatsSidBuffer(int wavLength) voidprocessFrame(long absTime, ByteBuffer pixels) voidprocessOsc(int sidNum, long absTime, ByteBuffer wav0, String wav0Txt, ByteBuffer wav1, String wav1Txt, ByteBuffer wav2, String wav2Txt, ByteBuffer env0, String env0Txt, ByteBuffer env1, String env1Txt, ByteBuffer env2, String env2Txt, ByteBuffer frq0, String frq0Txt, ByteBuffer frq1, String frq1Txt, ByteBuffer frq2, String frq2Txt, ByteBuffer vol, String volTxt, ByteBuffer res, String resTxt, ByteBuffer fil, String filTxt) voidprocessPrinter(IPaper.Outputs output) voidprocessSamples(long absTime, ByteBuffer sampleBuffer, float[] lookupTable) voidprocessSidWrite(int sidNum, long absTime, int relTime, int addr, int value) voidprocessTimerEnd(double end) voidwhatsSid(ByteBuffer whatsSidBuffer) Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden client.teavm.common.IImportedApi
initControlBuffer
-
Felddetails
-
out
-
-
Konstruktordetails
-
ImportedApiWav
-
-
Methodendetails
-
initSampleBuffer
- Angegeben von:
initSampleBufferin SchnittstelleIImportedApi
-
initFrameBuffer
- Angegeben von:
initFrameBufferin SchnittstelleIImportedApi
-
initGaugeBuffer
- Angegeben von:
initGaugeBufferin SchnittstelleIImportedApi
-
initWhatsSidBuffer
- Angegeben von:
initWhatsSidBufferin SchnittstelleIImportedApi
-
processSamples
- Angegeben von:
processSamplesin SchnittstelleIImportedApi
-
processFrame
- Angegeben von:
processFramein SchnittstelleIImportedApi
-
processOsc
public void processOsc(int sidNum, long absTime, ByteBuffer wav0, String wav0Txt, ByteBuffer wav1, String wav1Txt, ByteBuffer wav2, String wav2Txt, ByteBuffer env0, String env0Txt, ByteBuffer env1, String env1Txt, ByteBuffer env2, String env2Txt, ByteBuffer frq0, String frq0Txt, ByteBuffer frq1, String frq1Txt, ByteBuffer frq2, String frq2Txt, ByteBuffer vol, String volTxt, ByteBuffer res, String resTxt, ByteBuffer fil, String filTxt) - Angegeben von:
processOscin SchnittstelleIImportedApi
-
whatsSid
- Angegeben von:
whatsSidin SchnittstelleIImportedApi
-
processSidWrite
public void processSidWrite(int sidNum, long absTime, int relTime, int addr, int value) - Angegeben von:
processSidWritein SchnittstelleIImportedApi
-
processTimerEnd
public void processTimerEnd(double end) - Angegeben von:
processTimerEndin SchnittstelleIImportedApi
-
processPrinter
- Angegeben von:
processPrinterin SchnittstelleIImportedApi
-