Posted March 19, 20178 yr I am attempting to make a modular synthesizer mod and made a custom subclass which instead reads a waveform for the sound data (no file at all) However, I cannot seem to figure out how to play a sound without needing to point it to a resource. If this is possible already, please explain how to do it. •Fact: Updating a mod to a new version of minecraft takes time. Especially if the original mod was never open source. •Fact: The more users pester people who make mods to update their mods to a new version of minecraft, the less likely it is that it will be quickly updated. •Fact: The more you comment about it, the more likely you are to be ignored. •Fact: The more recent the last post about updating a mod is, the more annoying yours will be. •Fact: Using all caps does not reverse any of the above effects
March 20, 20178 yr Author 20 hours ago, diesieben07 said: Worst case scenario you just have to use OpenAL manually. How would I do that? Know any good tutorials? •Fact: Updating a mod to a new version of minecraft takes time. Especially if the original mod was never open source. •Fact: The more users pester people who make mods to update their mods to a new version of minecraft, the less likely it is that it will be quickly updated. •Fact: The more you comment about it, the more likely you are to be ignored. •Fact: The more recent the last post about updating a mod is, the more annoying yours will be. •Fact: Using all caps does not reverse any of the above effects
July 13, 20178 yr I figured out a way to play a MIDI file via the Minecraft sound system. e.g. MIDI sequence -> java Gervill synthesizer -> Minecraft sound system. Is uses Forge events. I made a custom codec that simply reads an AudioInputStream in memory. You can take a look at audio related classes in my repository here. The code is still somewhat experimental and needs to optimized but it should give you some ideas. I did all of this so that the sound from the musical instruments in my mod exist in the 3D sound space just like any other positional/moving source sound in Minecraft. Edited July 13, 20178 yr by Aeronica
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.