Sounds
The Sounds tab of the Resource Manager dialog provides a convenient way to import and preview all sound ( .WAV and .MP3) files to be used in your project. Use this tab as a "library" of every sound file that will be used in your project - for pages, popup pages, and buttons (F
IG. 38
).
FIG. 38 Resource Manager dialog - Sounds tab
Importing Sound Files Into the Project
- Select Panel > Resource Manager (or click the toolbar button) to open the Resource Manager dialog.
- Open the Sounds tab.
- Click the Import button to invoke the Open dialog.
Click the Overwrite resources with duplicate names checkbox (at the bottom of the dialog) to automatically overwrite any existing sound files that have the same filename. If this option is selected, anytime a file with a duplicate name is imported, it will replace the original file on every button or page that referenced that filename in the project.
- Locate and select the file(s) to import.
NOTE: TPD5 supports WAV and MP3 sound f ile formats.
- Click Open to import the files to the Sounds tab.
NOTE: If you import an sound f ile that has already been imported to the Sounds tab, the f ilename is changed to include the prefix "Copy of...". This is true even if the second version of the f ile you have imported is of a different f ile type with a different extension.
Previewing Sound Files
- Select Panel > Resource Manager (or click the toolbar button) to open the Resource Manager.
- Open the Sounds tab.
- Select a Sound file.
- Click the Play button.
Assigning Sounds to Buttons
Sounds (WAV or MP3 sound files) can be assigned to General, Multi-State General and Multi-State Bargraph buttons, via the Sound State Property.
NOTE: In order to apply a Sound, the sound f ile must be pre-loaded in the Resource Manager. See
page 43
for details.
- In a Design View window, select the Button to which you want to add or change the Sound file.
- In the States tab of the Properties window, click on the Sound field. Click the browse (...) button to open the Select Resource
dialog (FIG. 39):
FIG. 39 Select Resource dialog (Sounds)
- Select a sound file and click OK to save changes and close the Select Resource dialog.
Editing Sound Files
In order to edit image and sound files via the TPDesign5 UI, default image and sound editor applications must be defined in the Editor Selection tab of the Preferences dialog. See
Adding an External Sound Editing Program on page 45
for details.
- Open the Sounds tab of the Resource Manager dialog.
- Select the sound file that you want to edit.
- Click the Edit button to launch the external program specified as the default editor for sound files.
- When the edit session begins, the image or sound file is opened in the default editing program. Any saved changes to the resource made in the external editor will be immediately reflected in TPDesign5.
NOTE: Any action taken in TPDesign5 that would change the state of the image or sound f ile being edited (e.g., delete, rename, undo/ redo, etc.) will cause the link between TPDesign5 and the external application to be broken. Any subsequent changes made in the external editor will not be reflected nor applied.
Custom Ringtones & Ringback Tones
G5 supports custom ringtones and ringback tones:
Customizing the Ringtone
The default incoming call ringtone can be overridden by including a wave file named "ringtone.wav" in the TP5 project file. If a "ringtone.wav" file is found in the TP5 file, it is used instead of the default ringtone. If no such file exists, then the default ringtone is used.
Customizing the Ringtone For Particular Caller Numbers
A custom ringtone can be configured for calls from a specific extension by including a wave file named "ringer_xxxx.wav" file in the TP5 project file. For example, a file named "ringer_6001.wav" would be used as a custom ringtone for incoming calls from extension 6001.
This will override the custom ringtone.wav for any extension that has a custom ringer_xxxx.wav sound defined.
Customize Ringback Tone
Te default ringback tone (for an outgoing call) can be overridden by placing a "ringback.wav" file in the TP5 project file.
Editing Image and Sound Files Using External Programs
Adding an External Image Editing Program
Use the options in the Editor Selection tab of the Preferences dialog to associate one or more image editing programs with image files in TPD5 projects. Note that you can associate multiple editor programs with image files, but one is specified as the default image editor:
- Select Edit > Preferences to open the Preferences dialog, and open the Editor Selection tab. Note that Image Editors is already selected in the Editor Type drop-down menu.
- Click the Add button (+) to access the Choose Editor dialog.
- Click the Browse button (...) to locate and select the desired program's executable (.EXE) file, in the Open dialog.
NOTE: The f irst program added to the Editors list is automatically designated as the default image editor. If you add additional programs to the list, you have the option (in the Choose Editor dialog) to set the default image editor.
- Click OK in the Choose Editor dialog to add the selected program to the Editors list (FIG. 40)
FIG. 40 Preferences dialog - Editor Selection tab
Changing the Default External Image Editor Program
- In the Preferences dialog (Editor Selection tab), double-click the Image Editor application that you want to set as the new default program. This opens the Choose Editor dialog (FIG. 41).
FIG. 41 Choose Editor dialog with Default Editor option selected
- Click in the Default Editor checkbox and click OK to save changes and close the dialog.
- The application now indicates TRUE in the Default column in the Editor Selection tab.
Adding an External Sound Editing Program
Use the options in the Editor Selection tab of the Preferences dialog to associate one or more sound editing programs with sound files in TPD5 projects. Note that you can associate multiple editor programs with sound files, but one is specified as the default image editor:
- Select Edit > Preferences to open the Preferences dialog, and open the Editor Selection tab.
- Click the down arrow and select Sound Editors from the Editor Type drop-down menu.
- Click the Add (+) button to access the Choose Editor dialog.
- Click the Browse button to locate and select the desired program's executable (.EXE) file.
NOTE: The f irst program added to the Editors list is automatically designated as the default sound editor. If you add additional programs to the list, you have the option (in the Choose Editor dialog) to set the default sound editor.
- Click OK in the Choose Editor dialog to add the selected program to the Editors list.
Changing the Default External Sound Editor Program
- In the Preferences dialog (Editor Selection tab), double-click the Sound Editor application that you want to set as the new default program. This opens the Choose Editor dialog.
- Click in the Default Editor checkbox and click OK to save changes and close the dialog.
- The application now indicates TRUE in the Default column in the Editor Selection tab.