Hi
I'm not sure if I'm posting in the right area (new to the forum), but I'm sure if not some kind person will direct me to the right place....
I've recently been working on some VB10 code to read the on-screen speed display in Microsoft Train Simulator (MSTS) and output it via a hardware device to a model railway controller, the intention being to give better simulated control (no rapid starts/stops) and synchronised sound. I've still got to do some work on the hardware but the basic screen grab/OCR code I wrote to extract the speed from MSTS is working fine. So far so good.
However whilst the sound (produced by MSTS) should be in sychronisation with the loco movement (i.e. starting as the train starts, "chuffing" in correspondence with cylinder/wheel movement), I realise that the sound source will be static i.e. it will not move around the model railway as the train does.
Is there any way of using VB to control the speaker balance and volume (based on the distance the train has moved), so it "appears" to move around with the train?
Many thanks
Richard
I'm not sure if I'm posting in the right area (new to the forum), but I'm sure if not some kind person will direct me to the right place....
I've recently been working on some VB10 code to read the on-screen speed display in Microsoft Train Simulator (MSTS) and output it via a hardware device to a model railway controller, the intention being to give better simulated control (no rapid starts/stops) and synchronised sound. I've still got to do some work on the hardware but the basic screen grab/OCR code I wrote to extract the speed from MSTS is working fine. So far so good.
However whilst the sound (produced by MSTS) should be in sychronisation with the loco movement (i.e. starting as the train starts, "chuffing" in correspondence with cylinder/wheel movement), I realise that the sound source will be static i.e. it will not move around the model railway as the train does.
Is there any way of using VB to control the speaker balance and volume (based on the distance the train has moved), so it "appears" to move around with the train?
Many thanks
Richard