Class MixSound
java.lang.Object
net.raphimc.audiomixer.sound.Sound
net.raphimc.audiomixer.sound.impl.mix.MixSound
- Direct Known Subclasses:
ChannelMixSound
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforEachSound(Consumer<Sound> action) intfloatintintbooleanvoidvoidrender(PcmFloatAudioFormat audioFormat, float[] finalMixBuffer) setMaxSounds(int maxSounds) voidvoidMethods inherited from class net.raphimc.audiomixer.sound.Sound
getSoundModifiers
-
Field Details
-
sounds
-
cpuLoad
protected float cpuLoad
-
-
Constructor Details
-
MixSound
public MixSound() -
MixSound
public MixSound(int maxSounds)
-
-
Method Details
-
render
-
isFinished
public boolean isFinished()- Specified by:
isFinishedin classSound
-
playSound
-
stopSound
-
stopAllSounds
public void stopAllSounds() -
forEachSound
-
getMaxSounds
public int getMaxSounds() -
setMaxSounds
-
getMixedSounds
public int getMixedSounds() -
getCpuLoad
public float getCpuLoad() -
getActiveSounds
public int getActiveSounds()
-