public class CmpMP3File extends JavaSound
Modifier and Type | Class and Description |
---|---|
static class |
CmpMP3File.MP3Termination |
Modifier and Type | Field and Description |
---|---|
protected lowlevel.LameDecoder |
jump3r
Jump3r decoder.
|
protected JavaSound |
mp3JavaSound
MP3 sound output.
|
Constructor and Description |
---|
CmpMP3File() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Free the audio device.
|
void |
open(AudioConfig cfg,
String recordingFilename,
CPUClock cpuClock)
Open audio interface.
|
void |
pause()
Temporarily cease audio production, for instance if user paused the
application.
|
void |
write()
Write the complete contents of ByteBuffer to audio device.
|
buffer, flush, getDevices, getRemainingPlayTime, open, setAudioDevice
protected lowlevel.LameDecoder jump3r
protected JavaSound mp3JavaSound
public void open(AudioConfig cfg, String recordingFilename, CPUClock cpuClock) throws IOException, LineUnavailableException
AudioDriver
open
in interface AudioDriver
open
in class JavaSound
cfg
- Configuration requested.recordingFilename
- name for a recordingIOException
LineUnavailableException
public void write() throws InterruptedException
AudioDriver
write
in interface AudioDriver
write
in class JavaSound
InterruptedException
public void pause()
AudioDriver
pause
in interface AudioDriver
pause
in class JavaSound
public void close()
AudioDriver
close
in interface AudioDriver
close
in class JavaSound
Copyright © 2018 Ken Händel. All rights reserved.