Posted February 14, 201411 yr In 1.6.4 it was easy to add sounds using the SoundLoadEvent and SoundManager; java docs in 1.7.2 still maintain that SoundLoadEvent is a 'good place for adding your custom sounds to the SoundPool', but there doesn't seem to be any way to access the sound pool using the SoundManager. Anyone know how it works now? http://i.imgur.com/NdrFdld.png[/img]
February 14, 201411 yr As far as adding sounds go you do it via json file: http://www.minecraftforge.net/forum/index.php?topic=15406.0 You can't do a whole lot with sounds yet though, Currently these events are never posted: PlayBackgroundMusicEvent, PlaySoundEffectEvent, PlaySoundEffectSourceEvent, PlaySoundEvent, PlaySoundSourceEvent, PlayStreamingEvent, PlayStreamingSourceEvent, SoundEvent, and SoundResultEvent SoundLoadEvent and SoundSetupEvent are posted to the forge event bus in SoundManager
February 14, 201411 yr Author Thanks, that's all I needed to know! http://i.imgur.com/NdrFdld.png[/img]
February 14, 201411 yr I'd say SoundLoadEvent is deprecated. A hook into SoundHandler would be better.
February 15, 201411 yr Author I agree. I just removed my SoundLoadEvent listener entirely, given that sounds are loaded automatically from a .json file now there seems to no longer be any use for the SoundLoadEvent. http://i.imgur.com/NdrFdld.png[/img]
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.