So I got this to work in 1.4.6 using sound3, but for some reason the sound doesn't play until a good 1 second after I shoot my gun. This is really annoying, IDK how to fix it.
This is really confusing to me,i'm trying to make a new music disc but i just don't understand what goes where and what does what.Can anyone explain a bit clear or heck any video tutorials on this,because i'm just mindblown.
Thank you for putting in the time to make a tutorial.
Followed everything you posted, and all my oggies play when i need them too.
My only concern is when they DO play, it makes this "echo" effect.
Like for example, when i spawn my custom mob via right-clicking an item, it plays a custom sound. However, the custom ogg that plays is almost... duplicated? Almost as if two of them are playing instead of 1.
How do you make background music? Do you have to do more than register it and put it in the right place? I'm also unclear on how to make records, it works but won't play sounds.
Thanks,
LittleBreadLoaf
The Forge tutorial is way too confusing! Where does each method goes? And in which class? Where does the EVENT_BUS goes?? I really can't understund it!
How would I go about adding a looping "ambient" sound that only plays while a condition is true, and has no clicks or other audio artifacts from bad timing?
More directly, I have a TileEntity which I want to make a constant hum when in operation (while a variable is true). I want the ability to start the play when the variable becomes true, and stop it when it becomes false, or when the game is paused/exited/etc. I have tried making a sound of known length (eg 4s) then running it every certain number of ticks to attempt to "force stitch" them, but it does not work; slight timing irregularities are VERY audible.
Rollback Post to RevisionRollBack
I am the developer of many mods, most famously RotaryCraft and ChromatiCraft.
Feel free to support me and my mods via PayPal or Patreon
-
Followed everything you posted, and all my oggies play when i need them too.
My only concern is when they DO play, it makes this "echo" effect.
Like for example, when i spawn my custom mob via right-clicking an item, it plays a custom sound. However, the custom ogg that plays is almost... duplicated? Almost as if two of them are playing instead of 1.
Any ideas?
You will need to have an reference to worldObj(World) of course.
You mean like this? (Inside ItemBtd.java)
Because when I right click now nothing happens, no sound played or spawning of entity. No 'errors' are present though.
Thanks,
LittleBreadLoaf
Bleach Mod
Visit my youtube channel? http://www.youtube.com/user/TheCoolgatty
Hey could you or someone explain me how to add background music? I don't get it!
Visit my youtube channel? http://www.youtube.com/user/TheCoolgatty
More directly, I have a TileEntity which I want to make a constant hum when in operation (while a variable is true). I want the ability to start the play when the variable becomes true, and stop it when it becomes false, or when the game is paused/exited/etc. I have tried making a sound of known length (eg 4s) then running it every certain number of ticks to attempt to "force stitch" them, but it does not work; slight timing irregularities are VERY audible.
I've looked all over and haven't found anything, and your tutorial appears!
Thanks a lot, its about time I found something like this!
Like in a different dimension, it plays different music.