Class SoundSource


  • public class SoundSource
    extends java.lang.Object
    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • source

        private final int source
      • initialized

        private final java.util.concurrent.atomic.AtomicBoolean initialized
      • streamingBufferSize

        private int streamingBufferSize
    • Constructor Detail

      • SoundSource

        private SoundSource​(int p_i51178_1_)
    • Method Detail

      • destroy

        public void destroy()
      • play

        public void play()
      • getState

        private int getState()
      • pause

        public void pause()
      • unpause

        public void unpause()
      • stop

        public void stop()
      • stopped

        public boolean stopped()
      • setSelfPosition

        public void setSelfPosition​(Vector3d p_216420_1_)
      • setPitch

        public void setPitch​(float p_216422_1_)
      • setLooping

        public void setLooping​(boolean p_216425_1_)
      • setVolume

        public void setVolume​(float p_216430_1_)
      • disableAttenuation

        public void disableAttenuation()
      • linearAttenuation

        public void linearAttenuation​(float p_216423_1_)
      • setRelative

        public void setRelative​(boolean p_216432_1_)
      • attachStaticBuffer

        public void attachStaticBuffer​(AudioStreamBuffer p_216429_1_)
      • attachBufferStream

        public void attachBufferStream​(IAudioStream p_216433_1_)
      • calculateBufferSize

        private static int calculateBufferSize​(javax.sound.sampled.AudioFormat p_216417_0_,
                                               int p_216417_1_)
      • pumpBuffers

        private void pumpBuffers​(int p_216421_1_)
      • updateStream

        public void updateStream()
      • removeProcessedBuffers

        private int removeProcessedBuffers()