public class GaplessSoundOutputStreamImpl extends SoundOutputStreamImpl
audioFormat, audioProcessor, currentBalance, currentVolume, exportFile, keepSilent, playDuringExport, sourceLine, waveExportFile| Constructor and Description |
|---|
GaplessSoundOutputStreamImpl() |
GaplessSoundOutputStreamImpl(AudioFormat audioFormat,
AudioProcessor audioProcessor,
File exportFile,
boolean playDuringExport,
boolean keepSilent) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeAudioFormatTo(AudioFormat newAudioFormat) |
void |
close() |
void |
closeAllDevices()
This method is needed to close all devices as the gapless
stream does a close on the line only, if audio formats don't match
|
void |
open() |
protected void |
openSourceLine()
This method will only create a new line if
a) an AudioFormat is set
and
b) no line is open
c) or the already open Line is not matching the audio format needed
After creating or reusing the line, status "open" and "running" are ensured
|
closeAudioProcessor, closeExportFile, closeSourceLine, getAudioFormat, getFramePosition, isInitialized, matches, openAudioProcessor, openExportFile, setAudioProcessor, setBalance, setExportFile, setInternalFramePosition, setKeepSilent, setPlayDuringExport, setVolume, setWaveExportFile, startLine, stopLine, writeSampleData, writeSampleDataInternallypublic GaplessSoundOutputStreamImpl()
public GaplessSoundOutputStreamImpl(AudioFormat audioFormat, AudioProcessor audioProcessor, File exportFile, boolean playDuringExport, boolean keepSilent)
audioFormat - audioProcessor - exportFile - playDuringExport - keepSilent - protected void openSourceLine()
openSourceLine in class SoundOutputStreamImplSoundOutputStreamImpl.openSourceLine()public void open()
open in interface SoundOutputStreamopen in class SoundOutputStreamImplSoundOutputStreamImpl.open()public void close()
close in interface SoundOutputStreamclose in class SoundOutputStreamImplSoundOutputStreamImpl.close()public void closeAllDevices()
closeAllDevices in interface SoundOutputStreamcloseAllDevices in class SoundOutputStreamImplpublic void changeAudioFormatTo(AudioFormat newAudioFormat)
changeAudioFormatTo in interface SoundOutputStreamchangeAudioFormatTo in class SoundOutputStreamImplnewAudioFormat - SoundOutputStreamImpl.changeAudioFormatTo(javax.sound.sampled.AudioFormat)Copyright © 2014. All rights reserved.