public class WavFile extends Object implements AudioDriver
Constructor and Description |
---|
WavFile() |
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.
|
void |
write()
Write the complete contents of ByteBuffer to audio device.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
pause
public void open(AudioConfig cfg, String recordingFilename, CPUClock cpuClock) throws IOException, LineUnavailableException
AudioDriver
open
in interface AudioDriver
cfg
- Configuration requested.recordingFilename
- name for a recordingIOException
LineUnavailableException
public void write() throws InterruptedException
AudioDriver
write
in interface AudioDriver
InterruptedException
public void close()
AudioDriver
close
in interface AudioDriver
public ByteBuffer buffer()
AudioDriver
buffer
in interface AudioDriver
Copyright © 2018 Ken Händel. All rights reserved.