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, setAudioDeviceprotected lowlevel.LameDecoder jump3r
protected JavaSound mp3JavaSound
public void open(AudioConfig cfg, String recordingFilename, CPUClock cpuClock) throws IOException, LineUnavailableException
AudioDriveropen in interface AudioDriveropen in class JavaSoundcfg - Configuration requested.recordingFilename - name for a recordingIOExceptionLineUnavailableExceptionpublic void write()
throws InterruptedException
AudioDriverwrite in interface AudioDriverwrite in class JavaSoundInterruptedExceptionpublic void pause()
AudioDriverpause in interface AudioDriverpause in class JavaSoundpublic void close()
AudioDriverclose in interface AudioDriverclose in class JavaSoundCopyright © 2018 Ken Händel. All rights reserved.