¿ªÔÆÌåÓý

Locked Re: VSDecoder: questions for gurus #vsdecoder


 

¿ªÔÆÌåÓý

I made some more tests.

Copied the sound files definition in config.xml--since there aren't any other to use, just doubled them up. Example:

<s1notch-sound>
??????????? <notch-file>sounds/engine/Speed2g_1.wav</notch-file>
??????????? <notch-file>sounds/engine/Speed2g_1.wav</notch-file>
??????????? <notch-file>sounds/engine/Speed2g_2.wav</notch-file>
??????????? <notch-file>sounds/engine/Speed2g_2.wav</notch-file>
??????????? <notch-file>sounds/engine/Speed2g_3.wav</notch-file>
??????????? <notch-file>sounds/engine/Speed2g_3.wav</notch-file>
??????????? <notch-file>sounds/engine/Speed2g_4.wav</notch-file>
??????????? <notch-file>sounds/engine/Speed2g_4.wav</notch-file>
??????????? <notchfiller-file>sounds/engine/stille800.wav</notchfiller-file>
??????????? <min-rpm>18</min-rpm>
??????????? <max-rpm>65</max-rpm>
??????? </s1notch-sound>

Tried this with 3 and 4 cylinders, no crash but also the chuff sounds are now far too rapid. Not sure how to approximate BR96 sound with this system, but this particular hack didn't work.

Charles

On 25/9/19 11:48 pm, Klaus Killinger wrote:
Charles,

I've created an issue ( ), where you can track this.

Klaus


Am 25.09.2019 um 13:58 schrieb Charles Meo:
I tried changing 'cylinders' to 4 and then three, since I run BR96 0880 Malletts and I wanted to see if this would produce more appropriate noises.

Got java exceptions for both values.

java.lang.IndexOutOfBoundsException: Index: 4, Size: 4
???? at java.util.ArrayList.rangeCheck(ArrayList.java:657)
???? at java.util.ArrayList.get(ArrayList.java:433)
???? at jmri.jmrit.vsdecoder.Steam1Sound$S1LoopThread.selectData(Steam1Sound.java:965)
???? at jmri.jmrit.vsdecoder.Steam1Sound$S1LoopThread.run(Steam1Sound.java:928)

Looks like the code isn't expecting a value larger than 2. Not sure about hacking this myself since I don't know what side-effects might be produced by messing with the array size.



--





Apulia Grove Olives
40 Tranter Rd
Toolleen
Victoria 3551

M: 0409 258 471
charles@...

Join [email protected] to automatically receive all group messages.