PlaySounds
PlaySounds plays a sequence of short WAV-formatted sound files. Note: There is no way to stop the sound except by killing the D&Do application.
Motivation
It provides a fast and easy way to play many WAV files without using the slow-to-start Windows Media Player.
Description
Overview
PlaySounds accepts file drops that should be WAV-formatted sound files. Once the target is clicked, it attempts to play the content of each file. If the file is not a sound file or is not a WAV-formatted sound file, the target area flashes yellow.
Variants
- Default:
This is the only variant.
Tagged Drops
There is no tagged drop
Untagged Drops
The untagged file drops correspond to sound files.
Clipboard Use
The clipboard is not used for any variant.
Possible Metascript-Related Messages
- ERR: Unable to play
The file is either of an invalid format or is not a sound file.
Other Considerations
An explicit Clear List command is required except when an error occurs.
Script Effects
For any variant, PlaySounds will attempt to play the file as a sound file into your audio card..
Requirements
- Executable:
pythonw
- Script file(s):
PlaySound.py for all variants; it must be located under the scripts/py sub-directory.
- IO access:
Outputs to the sound card.
Side Effects:
- Clipboard Usage:
No
- No other side effect.
Instructions
Listening to a list of sound files
Here are the detailed instructions for playing sound files.
- Make sure that D&Do pink drop target area displays: BY1
- Using a file browser (ex. the Windows Explorer):
- Make the destination directory visible (expanding directories as necessary)
- For each sound file to play:
- Press the mouse button when the cursor is on a WAV-formatted sound file, drag the cursor to the D&Do target area then release the button.
- Click the drop target area
- You should observe that:
- Sound is outputted
- The drop target displays WAIT while the sound is outputted, then BY1 when the last file has played its sound.
- The status message display: INF: Exit = 0
This is it. Note: Do not forget to clear the list, in order to start with a new list of sound files.
Source
Please, add authors and owners for each version of the metascript
Owner(s):
- Company:
Big Feet Software
- License:
Freeware; you may use and modify this metascript and related script files. You cannot claim ownership of their original version.
Author(s):
- Name:
Marcel St-Amant
- Country:
CANADA
- Release Date:
2003-10-13
- Version:
1.0