Tutorial 6.E. - Add Set Audio track action directly to the audio setup buttons
 

Tutorial 6.E. - Add Set Audio track action directly to the audio setup buttons

 

What you will learn in this section:

  • Review how to use the Set Audio Track action

In the previous two tutorials, we used APRMs and conditions to set a global language variable and then play the appropriate audio track in our Main Video title based on which language value is currently stored in that variable. This method works well because it can be applied to multiple titles and it stays active the whole time the viewer is watching the disc.

However, because we attach the Conditions (and their Set Audio Track actions) to the Start event of the Main Video title, this method only works when the Main Video title isn’t playing. How do we account for the viewer bringing the pop-up menu on-screen while watching the Main Video and making a language selection then? Here’s how:

We’ll add the Set Audio Track action directly to the Audio setup buttons. That way, if the viewer is currently watching the Main Video title the audio change will happen immediately.

  1. Expand the Menu Elements view for the button called “AudioEnglish” to display the five remote control events for the button.
  2. Click the Enter Key event to display the Action editor Window in the Control Panel.
  3. Right-click the action Editor window to display the Actions list. Select Primary Audio/Video Actions>Set Audio Track. You will see the Set Audio Track action appear in the Actions list.

The Set Audio Track Action has two parameters

  1. Select Main Video from the Title Name pull down list.
  2. Select “English Dolby” from the Audio Track Number field.

Repeat steps 1-5 for the “AudioFrench” and “AudioGerman” buttons.

Show me:

Quick Compile and review.

Try playing the Main Video by pressing the “Play Film” button on the Main Menu. The English track plays by default (remember we set the initial value of our “Audio” APRM to “English”). Use the pop-up menu to change the audio track to German while the Main Video is playing. The audio track will change immediately.

The disc is functioning well at this point, but when you press the pop-up menu button on the remote control and navigate back to the setup menu, you’ll see that all of the buttons are in their default state. It is a best practice to give the viewer feedback in the menu system about which audio and subtitle settings they have selected. We will address this in the next tutorial.