public interface AudioDriver
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
buffer()
Return the bytebuffer intended to hold the audio data.
|
void |
close()
Free the audio device.
|
void |
open(AudioConfig cfg,
String recordingFilename,
CPUClock cpuClock)
Open audio interface.
|
default void |
pause()
Temporarily cease audio production, for instance if user paused the
application.
|
void |
write()
Write the complete contents of ByteBuffer to audio device.
|
void open(AudioConfig cfg, String recordingFilename, CPUClock cpuClock) throws IOException, LineUnavailableException
cfg
- Configuration requested.recordingFilename
- name for a recordingIOException
LineUnavailableException
void write() throws InterruptedException
InterruptedException
default void pause()
void close()
ByteBuffer buffer()
Copyright © 2018 Ken Händel. All rights reserved.