Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

  • Author

 

  On 3/19/2017 at 2:06 PM, 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...

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.