Package builder.resid
Klasse SampleMixer.LinearFadingSampleMixer
java.lang.Object
builder.resid.SampleMixer.DefaultSampleMixer
builder.resid.SampleMixer.LinearFadingSampleMixer
- Alle implementierten Schnittstellen:
SampleMixer,IntConsumer
- Umschließende Schnittstelle:
SampleMixer
Extends SampleMixer with linear fade-in/fade-out feature to smoothly
increase/decrease volume. TODO implement logarithmic type?
- Autor:
- ken
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen builder.resid.SampleMixer
SampleMixer.DefaultSampleMixer, SampleMixer.LinearFadingSampleMixer, SampleMixer.NoOpSampleMixer -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprivate longFade-in/fade-out time in clock ticks.private longFade-in/fade-out clock steps until next volume change and current fade-in and fade-out counters for left and right speaker.private longFade-in/fade-out clock steps until next volume change and current fade-in and fade-out counters for left and right speaker.private longFade-in/fade-out clock steps until next volume change and current fade-in and fade-out counters for left and right speaker.private longFade-in/fade-out clock steps until next volume change and current fade-in and fade-out counters for left and right speaker.private longFade-in/fade-out time in clock ticks.private longFade-in/fade-out clock steps until next volume change and current fade-in and fade-out counters for left and right speaker.private longFade-in/fade-out clock steps until next volume change and current fade-in and fade-out counters for left and right speaker.private longFade-in/fade-out clock steps until next volume change and current fade-in and fade-out counters for left and right speaker.private longFade-in/fade-out clock steps until next volume change and current fade-in and fade-out counters for left and right speaker.private intCurrently configured volume level.private intCurrently configured volume level.Von Klasse geerbte Felder builder.resid.SampleMixer.DefaultSampleMixer
volumeL, volumeR -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaccept(int sample) voidsetFadeIn(long fadeIn) Set fade-in time.voidsetFadeOut(long fadeOut) Set fade-out time.voidsetVolume(int volumeL, int volumeR) Von Klasse geerbte Methoden builder.resid.SampleMixer.DefaultSampleMixer
clear, setDelayVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.function.IntConsumer
andThen
-
Felddetails
-
fadeInClocks
private long fadeInClocksFade-in/fade-out time in clock ticks. -
fadeOutClocks
private long fadeOutClocksFade-in/fade-out time in clock ticks. -
maxVolL
private int maxVolLCurrently configured volume level. -
maxVolR
private int maxVolRCurrently configured volume level. -
fadeInStepL
private long fadeInStepLFade-in/fade-out clock steps until next volume change and current fade-in and fade-out counters for left and right speaker. -
fadeInStepR
private long fadeInStepRFade-in/fade-out clock steps until next volume change and current fade-in and fade-out counters for left and right speaker. -
fadeOutStepL
private long fadeOutStepLFade-in/fade-out clock steps until next volume change and current fade-in and fade-out counters for left and right speaker. -
fadeOutStepR
private long fadeOutStepRFade-in/fade-out clock steps until next volume change and current fade-in and fade-out counters for left and right speaker. -
fadeInValL
private long fadeInValLFade-in/fade-out clock steps until next volume change and current fade-in and fade-out counters for left and right speaker. -
fadeInValR
private long fadeInValRFade-in/fade-out clock steps until next volume change and current fade-in and fade-out counters for left and right speaker. -
fadeOutValL
private long fadeOutValLFade-in/fade-out clock steps until next volume change and current fade-in and fade-out counters for left and right speaker. -
fadeOutValR
private long fadeOutValRFade-in/fade-out clock steps until next volume change and current fade-in and fade-out counters for left and right speaker.
-
-
Konstruktordetails
-
LinearFadingSampleMixer
-
-
Methodendetails
-
setFadeIn
public void setFadeIn(long fadeIn) Set fade-in time. Increase volume from zero to the maximum.- Parameter:
fadeIn- fade-in time in clock ticks
-
setFadeOut
public void setFadeOut(long fadeOut) Set fade-out time. Decrease volume from the maximum to zero.- Parameter:
fadeOut- fade-out time in clock ticks
-
setVolume
public void setVolume(int volumeL, int volumeR) - Angegeben von:
setVolumein SchnittstelleSampleMixer- Setzt außer Kraft:
setVolumein KlasseSampleMixer.DefaultSampleMixer
-
accept
public void accept(int sample) - Angegeben von:
acceptin SchnittstelleIntConsumer- Setzt außer Kraft:
acceptin KlasseSampleMixer.DefaultSampleMixer
-