Package sidplay.audio
Klasse JWAVDriver
java.lang.Object
sidplay.audio.JWAVDriver
- Alle implementierten Schnittstellen:
AudioDriver
- Bekannte direkte Unterklassen:
JWAVDriver.JWAVFileDriver,JWAVDriver.JWAVStreamDriver
Abstract base class to output a WAV to an output stream.
- Autor:
- Ken Händel
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic classFile based driver to create a WAV file.static classDriver to write into an WAV output stream.
Note: The caller is responsible of closing the output stream -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected OutputStreamOutput stream to write the encoded WAV to.private ByteBufferprotected WAVHeader -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuffer()Return the bytebuffer intended to hold the audio data.voidclose()Free the audio device.protected abstract OutputStreambooleanvoidopen(IAudioSection audioSection, String recordingFilename, CPUClock cpuClock, EventScheduler context) Open audio interface.voidwrite()Write the complete contents of ByteBuffer to audio device.Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden sidplay.audio.AudioDriver
lookup, pause
-
Felddetails
-
out
Output stream to write the encoded WAV to. -
wavHeader
-
sampleBuffer
-
-
Konstruktordetails
-
JWAVDriver
public JWAVDriver()
-
-
Methodendetails
-
open
public void open(IAudioSection audioSection, String recordingFilename, CPUClock cpuClock, EventScheduler context) throws IOException, LineUnavailableException, InterruptedException Beschreibung aus Schnittstelle kopiert:AudioDriverOpen audio interface.- Angegeben von:
openin SchnittstelleAudioDriver- Parameter:
audioSection- audio configurationrecordingFilename- name for a recordingcpuClock- CPU clockcontext- event context- Löst aus:
IOExceptionLineUnavailableExceptionInterruptedException
-
write
Beschreibung aus Schnittstelle kopiert:AudioDriverWrite the complete contents of ByteBuffer to audio device.- Angegeben von:
writein SchnittstelleAudioDriver- Löst aus:
InterruptedException
-
close
public void close()Beschreibung aus Schnittstelle kopiert:AudioDriverFree the audio device. (Counterpart of open().)- Angegeben von:
closein SchnittstelleAudioDriver
-
buffer
Beschreibung aus Schnittstelle kopiert:AudioDriverReturn the bytebuffer intended to hold the audio data. The audio data is in interleaved format and has as many channels as given by the result of open(). Use putShort() to write 16-bit values. Don't call write() until you have filled the entire buffer with audio.- Angegeben von:
bufferin SchnittstelleAudioDriver- Gibt zurück:
- The buffer to write audio to.
-
isRecording
public boolean isRecording()- Angegeben von:
isRecordingin SchnittstelleAudioDriver- Gibt zurück:
- is this audio driver recording tunes?
-
getExtension
- Angegeben von:
getExtensionin SchnittstelleAudioDriver- Gibt zurück:
- file extension for recordings
-
getOut
- Löst aus:
IOException
-