Class ThreadedChannelMixSound
java.lang.Object
net.raphimc.audiomixer.sound.Sound
net.raphimc.audiomixer.sound.impl.mix.MixSound
net.raphimc.audiomixer.sound.impl.mix.ChannelMixSound
net.raphimc.audiomixer.sound.impl.mix.ThreadedChannelMixSound
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionThreadedChannelMixSound(int threadCount) ThreadedChannelMixSound(int threadCount, int maxSounds) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidrender(PcmFloatAudioFormat audioFormat, float[] finalMixBuffer) Methods inherited from class net.raphimc.audiomixer.sound.impl.mix.ChannelMixSound
forEachSound, getActiveSounds, getChannel, getChannelCount, getMaxSounds, getMixedSounds, playSound, setMaxSounds, stopAllSounds, stopSoundMethods inherited from class net.raphimc.audiomixer.sound.impl.mix.MixSound
getCpuLoad, isFinishedMethods inherited from class net.raphimc.audiomixer.sound.Sound
getSoundModifiers
-
Constructor Details
-
ThreadedChannelMixSound
public ThreadedChannelMixSound(int threadCount) -
ThreadedChannelMixSound
public ThreadedChannelMixSound(int threadCount, int maxSounds)
-
-
Method Details
-
render
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-