Package sidplay.audio
Klasse ThrottlingDriver
java.lang.Object
sidplay.audio.ThrottlingDriver
- Alle implementierten Schnittstellen:
AudioDriver
No sound output at all, but sleeps regularly to slow down audio/video production.
- Autor:
- ken
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprivate LongCurrent buffered end of a video player clientprivate longC64 emulation time (emulation runs much faster than real-time)private LongCurrent time of a video player clientprivate EventSchedulerprivate CPUClockprivate ByteBufferprivate longC64 emulation time (emulation runs much faster than real-time)private longReal-time since recording startedprivate static final Loggerprivate longReal-time since recording started -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuffer()Return the bytebuffer intended to hold the audio data.voidclose()Free the audio device.booleanprivate StringmillisToDate(Long millis) voidopen(IAudioSection audioSection, String recordingFilename, CPUClock cpuClock, EventScheduler context) Open audio interface.voidsetClientTime(Long clientTime, Long bufferedEnd) 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
getExtension, lookup, pause
-
Felddetails
-
THROTTLING_DRIVER
-
cpuClock
-
context
-
startTime
private long startTimeReal-time since recording started -
time
private long timeReal-time since recording started -
startC64Time
private long startC64TimeC64 emulation time (emulation runs much faster than real-time) -
c64Time
private long c64TimeC64 emulation time (emulation runs much faster than real-time) -
clientTime
Current time of a video player client -
bufferedEnd
Current buffered end of a video player client -
sampleBuffer
-
-
Konstruktordetails
-
ThrottlingDriver
public ThrottlingDriver()
-
-
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
-
setClientTime
-
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?
-
millisToDate
-