| 06-23-2005, 11:46 AM | #1 |
Ok guys, im having a problem with playing ambient sounds. Ambient sounds are midi's using a by blizzard made .dls file. I imported my midi and a modified version of GM.dls (the main midi instrument library) to save filesize of the .dls. It all works, and I can play my midi... SOMETIMES! Without changing anything to the map it sometimes plays the midi, and sometimes doesnt. at map init I stop the music and clear the music list. And 5 seconds in the game I use the commands: Custom script: call SetAmbientDaySound("AshenvaleDay") Custom script: call SetSoundVolume(bj_dayAmbientSound, 127) The time of the day it between the checked values that SetAmbientDaySound uses so that cant be the problem. Any ideas what could be causing a sometimes playing of ambient sound, and sometimes not? P.S. I just noticed, the ambient sound plays if I hear wind rushing in the first 5 seconds. I guess that is the usual outland ambient sound for daytime, but sometimes that doesnt play either, and at that time my midi doesnt play either. |
| 06-23-2005, 12:06 PM | #2 |
Hmm, correct me if I'm wrong, but why not use a mp3 instead of a midi? Im aware that mp3's use more filesize, however, I dont recall being able to use Midi's on B.net. Unless of course, you plan to use this for LAN and not B.net. |
| 06-23-2005, 12:10 PM | #3 |
as you said. Filesize, right now im using <1mb for 8 minutes of music. And yes it does work on battlenet. Just that it sometimes doesnt play an ambient sound. |
