No audio for EntityAudioChannel
sshcrack opened this issue · 3 comments
Confirmation
- I have read the wiki
Bug description
When creating an EntityAudioChannel using the ServerVoiceApi no audio can be heard when using UUID.randomUUID() as channelId.
Using entity.getUUID() as channelId works though.
Minecraft version
1.21.1
Mod/Plugin version
1.21.1-2.5.30
Mod/Plugin loader and version
NeoForge 21.1.92
Steps to reproduce
Use the following code:
var channel = vcApi.createEntityAudioChannel(UUID.randomUUID(), vcApi.fromEntity(entity));
var player = vcApi.createAudioPlayer(channel, vcApi.createEncoder(OpusEncoderMode.AUDIO), () -> {
// Return some audio here
});
player.startPlaying();Expected behavior
Audio from the entity should be heard even when specifying as channelId UUID.randomUUID().
Log files
https://gist.github.com/sshcrack/35245141d9af3b738d88a4f248edda06
Screenshots
No response
UUID.randomUUID() не привязан ни к каким игровым объектам, поэтому клиент может не знать, как обработать этот канал.
Does this work for you?