Class ChannelMixSound
java.lang.Object
net.raphimc.audiomixer.sound.Sound
net.raphimc.audiomixer.sound.impl.mix.MixSound
net.raphimc.audiomixer.sound.impl.mix.ChannelMixSound
- Direct Known Subclasses:
ThreadedChannelMixSound
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionChannelMixSound(int channels) ChannelMixSound(int channels, int maxSoundsPerChannel) -
Method Summary
Modifier and TypeMethodDescriptionvoidforEachSound(Consumer<Sound> action) intgetChannel(int channel) intintintvoidsetMaxSounds(int maxSounds) voidvoidMethods inherited from class net.raphimc.audiomixer.sound.impl.mix.MixSound
getCpuLoad, isFinished, renderMethods inherited from class net.raphimc.audiomixer.sound.Sound
getSoundModifiers
-
Constructor Details
-
ChannelMixSound
public ChannelMixSound(int channels) -
ChannelMixSound
public ChannelMixSound(int channels, int maxSoundsPerChannel)
-
-
Method Details
-
playSound
-
stopSound
-
stopAllSounds
public void stopAllSounds()- Overrides:
stopAllSoundsin classMixSound
-
forEachSound
- Overrides:
forEachSoundin classMixSound
-
getChannel
-
getMaxSounds
public int getMaxSounds()- Overrides:
getMaxSoundsin classMixSound
-
setMaxSounds
- Overrides:
setMaxSoundsin classMixSound
-
getMixedSounds
public int getMixedSounds()- Overrides:
getMixedSoundsin classMixSound
-
getActiveSounds
public int getActiveSounds()- Overrides:
getActiveSoundsin classMixSound
-
getChannelCount
public int getChannelCount()
-