12-08-2010, 01:57 AM
It seems to be possible to do it in Java: http://download.oracle.com/javase/tutori...trols.html
However as in all things in Java, it will take more than 1 line of code to do it. If muting is done in Java, then the file checking should also be done in Java instead of the DecodeAudio.bat. In my DecodeAudio.bat file, the first line checks whether the file has already been decoded previously so it doesn't get decoded again since the muting and decoding process cause game pauses. A better check in Java would be not just to make sure the file already exists but also make sure it's not an empty file from previously failed decoding.
IMHO the above seems too much work to do it in Java for what I hope is a temporary workaround due to the noise bug/anomaly in HiMDRenderer. An elegant solution would be to get MarC to release an updated command line version of HiMDRenderer without the noise, or perhaps use some other improved decoding method. Still, the above workaround is working great for the time being.
However as in all things in Java, it will take more than 1 line of code to do it. If muting is done in Java, then the file checking should also be done in Java instead of the DecodeAudio.bat. In my DecodeAudio.bat file, the first line checks whether the file has already been decoded previously so it doesn't get decoded again since the muting and decoding process cause game pauses. A better check in Java would be not just to make sure the file already exists but also make sure it's not an empty file from previously failed decoding.
IMHO the above seems too much work to do it in Java for what I hope is a temporary workaround due to the noise bug/anomaly in HiMDRenderer. An elegant solution would be to get MarC to release an updated command line version of HiMDRenderer without the noise, or perhaps use some other improved decoding method. Still, the above workaround is working great for the time being.
![Smile Smile](https://www.emunewz.net/forum/images/smilies/smile.gif)