Jump to content

Recommended Posts

Posted

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

Posted

 

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

  • 3 months later...
Posted (edited)

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 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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.