AudioPlayer

AudioPlayer

157k Downloads

New Sound API in Fabric API 63 / 64

FixingGlobe opened this issue ยท 1 comments

commented

This might be interesting. A new feature in the fabric api allows audio streaming, could be interesting for cds and maybe goat horns, or something else.

Add Sound API to allow sound instances to play custom audio streams (FabricMC/fabric#2558) (Jonathan Coates)
FabricMC/fabric#2558

It's just and interesting idea wich could be beneficial for the mod. The quilted fabric api also supports it, so no issues with compatibility.

Fabric api 64 just released, it's in the changelog for 63.
The changelog is listed in the second paragraph alongside the pull request.

commented

I won't add any platfor specific implementations, since I'm using the same code on Forge, Fabric and Quilt.

It also wouldb't be back portable to older versions.
It would also cause inconsistencies between Fabric and the other versions of the mod, since the voice chat is able to be played on a separate device as MC audio.
It was already possible before to use Minecrafts audio system for the voice chat, but I decided against that for a reason.

You might have also noticed that this mod is a server side mod that just uses the voice chat API for audio, so this idea doesn't work anyways.