| Blockland Forums > Modification Help |
| How do I properly set up a sound so it plays? |
| (1/1) |
| Jubel:
I was able to find a sound file I've wanted for ages, and I was able to correctly package it and whatnot. The add-on loads fine, no errors, nothing. However when I try to use the sound in game, it doesn't seem to play. I'm not entirely sure why, but I guessed I missed an important thing. What are some certain properties that need to be help by the sound, such as bitrate, hertz, or if it needs to be mono/stereo. |
| Jubel:
Here's the file if anyone wants to check it. I have no idea what's wrong with it. |
| Demian:
I doubt there's anything wrong with the sound file itself. This all you need in the server.cs. --- Code: ---datablock AudioProfile(MySound) { filename = "./MySound.wav"; description = AudioClosest3d; preload = false; }; --- End code --- |
| otto-san:
Pretty sure it has to be mono. |
| Jubel:
--- Quote from: Demian on January 18, 2012, 10:06:33 AM ---I doubt there's anything wrong with the sound file itself. This all you need in the server.cs. --- Code: ---datablock AudioProfile(MySound) { filename = "./MySound.wav"; description = AudioClosest3d; preload = false; }; --- End code --- --- End quote --- I just found my issue then. I had the sound in brackets saying AlarmLoud instead of LoudAlarm. Thanks a lot. <3 |
| Navigation |
| Message Index |