History |
Importing and working with sound resources
Methods for importing sound resources
You can import sound resources:
• directly from files
You must import sound resources from a file that has the resources in the resource fork (a file that can be opened in ResEdit).
• using the clipboard to paste copied sounds into a resource file (Mac only).
Importing sound resources from files
To import a sound resource:
1 Choose File > Import Resources.
2 Select the file containing the sound you want to import.
Drag the file to the resource list.
FirstClass Designer adds the sound (in SND format) to the Sound category in your resource file's resource list.
The sound is assigned a unique resource ID and the resource name is the name of the original file.
3 Choose File > Properties with the sound selected, if you want to change the values assigned by FirstClass Designer.
4 Update the following fields:
Pasting sounds into resource files
To import a sound resource using the clipboard:
1 Open the sound resource you want to import in an application that lets you select and copy it.
2 Select the sound and copy it to the clipboard.
3 Use FirstClass Designer to open the resource file into which you want to import the sound.
4 Choose Edit > Paste.
FirstClass Designer adds the sound to the Sound category in your resource file's resource list. The sound is assigned a unique resource ID and the resource name is blank.
5 Choose File > Get Info with the sound selected.
6 Update the following fields:
Assigning sounds to actions
FirstClass includes standard sounds for certain actions, such as receiving a new message. You can customize a sound by assigning your new sound the resource ID of the action.
To see what actions have standard sounds, and check their resource IDs, open the Example.fc file that ships with FirstClass Designer.
There is no sound supplied for logoff, but you can assign a sound to this action by using resource ID 137.
Assigning sounds to windows
You can configure a sound to play when users open a particular window. To do so, assign a resource name that matches the name of the window. When assigning a sound to a window, the value you choose for the resource ID is not important, as long as it is in the range of 28000 to 28999, so that it does not conflict with any of the standard sounds' resource IDs.
For example, to play a sound when users open their Desktops, give the sound the resource name Desktop. To play a sound when users open a conference called News, give the sound the resource name News.
You can also play a sound when users open a message by giving the sound the same resource name as the message's subject. For this to work, the sound resource must be stored on the user's computer (for example, in their settings file or Images folder).
When multiple settings files make sense
Sounds use a lot of disk space. You may want to create a second settings file without the sounds for users who do not want to download a large settings file.
| ||||||||||