Logs get spammed with: Maximum sound pool size 8 reached
athrane opened this issue ยท 2 comments
Using the IncreaseSizeIdolInventoryItem
(with PlaySound2
):
/**
* Create operators.
*/
static Supplier<Operator2> splOp = () -> {
Function<Ports, LivingEntity> fnGetTarget = getFnGetLivingEntity2();
BiConsumer<Ports, EffectInstance> bcSetEffectInstance = getBcSetEffectInstance1();
return new Sequence2(new IsNot2(new IsEntityOfType2(fnGetTarget, PlayerEntity.class)),
new AddEffect2(fnGetTarget, bcSetEffectInstance, INCREASE_SIZE_EFFECT.get(),
increaseSizeEffectDuration.get(), increaseSizeEffectAmplifier.get()),
new PlaySound2(increaseSizeIdolInventoryItem.getSplSound()));
};
..creates a lot of warnings in the log. Log entry:
[22Aug2021 10:58:32.608] [Render thread/WARN] [net.minecraft.client.audio.SoundEngine/]: Failed to create new sound handle
[22Aug2021 10:58:32.608] [Sound engine/WARN] [net.minecraft.client.audio.SoundSystem/]: Maximum sound pool size 8 reached
[22Aug2021 10:58:32.608] [Render thread/WARN] [net.minecraft.client.audio.SoundEngine/]: Failed to create new sound handle
[22Aug2021 10:58:32.608] [Sound engine/WARN] [net.minecraft.client.audio.SoundSystem/]: Maximum sound pool size 8 reached
[22Aug2021 10:58:32.609] [Render thread/WARN] [net.minecraft.client.audio.SoundEngine/]: Failed to create new sound handle
After release 2.2 which included #1206 the issue can't be reproduced for neither
DecreaseSizeIdolInventoryItem or IncreaseSizeIdolInventoryItem.
Configuration in sounds.json:
"resize_target": {
"category" : "player",
"sounds": [{
"name": "bassebombecraft:resize",
"stream": false
}
]
},
Will close this issue but keep investigate for the other sound effects.