Package builder.resid

Klasse SampleMixer.LinearFadingSampleMixer

java.lang.Object
builder.resid.SampleMixer.NoFadingSampleMixer
builder.resid.SampleMixer.LinearFadingSampleMixer
Alle implementierten Schnittstellen:
SampleMixer, IntConsumer
Umschließende Schnittstelle:
SampleMixer

public static class SampleMixer.LinearFadingSampleMixer extends SampleMixer.NoFadingSampleMixer
Extends SampleMixer with linear fade-in/fade-out feature to smoothly increase/decrease volume.
Autor:
ken
  • Felddetails

    • fadeInClocks

      private long fadeInClocks
      Fade-in/fade-out time in clock ticks.
    • fadeOutClocks

      private long fadeOutClocks
      Fade-in/fade-out time in clock ticks.
    • maxVolL

      private int maxVolL
      Currently configured volume level.
    • maxVolR

      private int maxVolR
      Currently configured volume level.
    • fadeInStepL

      private long fadeInStepL
      Fade-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 fadeInStepR
      Fade-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 fadeOutStepL
      Fade-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 fadeOutStepR
      Fade-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 fadeInValL
      Fade-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 fadeInValR
      Fade-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 fadeOutValL
      Fade-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 fadeOutValR
      Fade-in/fade-out clock steps until next volume change and current fade-in and fade-out counters for left and right speaker.
  • Konstruktordetails

    • LinearFadingSampleMixer

      LinearFadingSampleMixer(IntBuffer audioBufferL, IntBuffer audioBufferR)
  • Methodendetails