DecoderPro® Manual

Setup JMRI

Getting Started

Using DecoderPro

DecoderPro® Programming Modes

The Basic Programmer

The Comprehensive Programmer

DecoderPro® Debug Menu

Virtual Sound Decoder

Back


Virtual Sound Decoder

The Virtual Sound Decoder provides a way for those who do not have sound-equipped locomotives (or who are not satisfied with the hardware sound decoder options in smaller scales) to enjoy throttle-controlled locomotive sounds from their computer speakers.

How it works

Locomotive sound "Profiles" are stored in a file called a "VSD File". When the Virtual Sound Decoder ("VSDecoder" or "VSD") is launched, the user chooses the desired Profile, and then assigns the VSDecoder an address. When the operator then controls the engine by pressing function buttons or changing the speed, the Virtual Sound Decoder responds just like a hardware sound decoder installed in the locomotive would by playing sounds through the computer speakers.

An example VSD file is included with the package, more examples are available for download on the web and you can make (and share!) your own.

See more details on the VSD File and its Configuration.

OpenAL Required

Virtual Sound Decoder requires that your system have the OpenAL audio library installed. OpenAL is included by default on the Mac, but must be installed on Windows.

OpenAL is available free from Creative Labs. You can download the installer for your operating system from the OpenAL site.

If you do not have OpenAL installed, Virtual Sound Decoder will seem to work, except you will get no sound output.

Please NOTE: OpenAL is a separate project from JMRI and is neither maintained nor controlled by the JMRI team.

Quick Start - How to use Virtual Sound Decoder

To get started with Virtual Sound Decoder, follow these steps.

  1. Make sure your sound system is working, and (if needed) you have installed OpenAL
  2. Select Debug->Virtual Sound Decoder->VSDecoder Manager
  3. With the VSDecoder Manager window selected, click the Add Decoder button.
  4. Configure the new VSDecoder
    • Select a loco from the Roster or enter an address Manually
    • Click Load VSD File and load the "example.vsd" file
    • Choose a Profile from the Profile combo-box.
    • Click OK
  5. Press the "Engine Start" button.
  6. Run your train!!

Each time you Add Decoder a new control panel will be added to the Manager window. The buttons on the control panel are specific to that VSDecoder.

In the Configure Dialog, you can save a VSDecoder profile selection to a Roster Entry, so that the profile is automatically loaded when the locomotive is selected from the Roster. Select the Roster entry, choose a Profile, and click "Save".

For more detailed information on the VSDecoder Manager, see the VSDecoder Manager User's Guide page.

Throttle Compatibility

Virtual Sound Decoder requires a throttle that will report speed changes and function button presses to JMRI. Currently compatible throttles include:

*Support for these systems is expected but not confirmed. If you have one of these systems and can confirm that VSD responds to throttle changes, please mention this on the JMRI users Groups.io group

Notably missing from this list is the popular NCE PowerCab system.

VSD is not compatible with the following systems because they do not send throttle information to JMRI.

The buttons on the Sounds tab can be used to trigger sounds if you are using an incompatible throttle system.

**VSD could also be setup to run in a so called "headless" mode. See more details on this.

Location Following

With input from locomotive tracking hardware, Virtual Sound Decoder is able to move the apparent source of the locomotive sound to follow the locomotive's position on the layout.

Location Following Setup
To enable location following you will need a hardware method of tracking the locomotive's position on the layout. VSD currently supports the following tracking systems:

If you have one of the systems noted as "not tested", and would like to help with testing and debug of this feature, please contact me on the JMRI users Groups.io group. More systems will be added in the future.

For details on setting up Location Following, see the Manage VSD Locations instructions.

When you have followed the above setup steps, launch a VSDecoder window, assign a locomotive and run it. As your locomotive moves around the layout, the sound will follow the locomotive's reported position.

Note: The sound will appear to "jump" from location to location as the locomotive's reported location changes. This effect will be smaller with additional and more closely spaced reporters.

Location Following using JMRI Operations

If you do not have a hardware tracking system, you can use the JMRI Operations feature to enable a rudimentary form of location following.

To set the Operations locations:

  1. Select Operations->Settings
  2. Select Tools->Options
  3. Check the "Enable physical locations for Virtual Sound Decoder" option, and save the changes.
  4. Follow the directions in Manage VSD Locations to assign locations.

To use Operations for location following, assign the specific locomotive to the train, then select the train in the locomotive's VSDecoder Options pane. When you MOVE the train in Operations, the sound will move to the next location on the Route.

For more information on Operations, see the JMRI® Operating User's Guide.

Advanced Location Following

Since JMRI Test Release 4.13.2 the "Advanced Location Following" is available. The Advanced Location Following calculates the position of a loco within a location and sets the sound position continuously. This lets the sound following the loco smoothly without a "jump".

For details on setting up Advanced Location Following, see the Manage VSD Locations instructions.

Menu Items
File->Load VSD File

Load the Sound Profiles from a VSD File. Profiles loaded will be available to any currently running or newly launched VSDecoder.

Edit->VSDecoder Preferences

Set preferences for VSDecoder operation. See below for details.

VSDecoder Preferences

The VSDecoder Preferences pane allows the user to change various preferences in how the VSDecoder works.

Preferences window

Auto Start Engine

If checked, the Engine sounds will react immediately to Throttle changes, without the Engine Start button first having to be pressed.

Note: Diesel engines normally have a starting-sound. Throttle changes will not be processed until the starting-sound has finished.

Auto-Load VSD File

If checked, the VSD File listed in the Default VSD File Path field will be automatically loaded on start-up. This can save a step for frequently used VSD Files.

Cancel / Apply / Save Buttons

Choose Cancel to cancel changes to the Preferences

Choose Apply to apply changes to the Preferences

Choose Save to save changes to the Preferences

Back