Sounds in OpenPalace
From OpenPalace
WAV/MP3 Files
Unfortunately, OpenPalace can not support WAV format sound files. In order for your custom sounds to work, you will need to convert the WAV files to MP3 format files with the same name, but a .mp3 extension.
For example. if you had a WAV format sound on your server with the filename "mysound" then you would need to create an MP3 version called "mysound.mp3" and upload it along side the original.
Then when a user types ")mysound" in the chat box, it will search for a "mysound.mp3" file on your HTTP media server to play, while the old "The Palace" client will still look for and use the existing file called "mysound". (Traditionally, Palace sound files do not include the .wav extension.)
In your script, you can also use the SOUND command:
ON INCHAT {
{"maniacal_laugh" SOUND} CHATSTR "hehe" SUBSTR IF
}
or
ON SELECT {
"click" SOUND
}
Important: OpenPalace is capable of playing multiple sounds simultaneously, where "The Palace" software was not. Additionally, you do not have to pre-download sounds in OpenPalace. The first time you use "sound_name" SOUND in a script, or a user says ")sound_name," the sound will play immediately, as the file streams from the server.
MIDI Files
OpenPalace can play General MIDI files via the Apple QuickTime browser plug-in. Midi files MUST have a .mid extension in order to be playable. Without the extension, the QuickTime Player doesn't know what format the file is to be able to play it. If you do not specify a ".mid" in the filename when you use the MIDIPLAY command, OpenPalace will add it for you.
Therefore, these two scripts are equivalent:
"mysong" MIDIPLAY ; is the same as: "mysong.mid" MIDIPLAY
If your midi files do not have the mid extension, just make a copy of each of them with the .mid extension to make them available to OpenPalace users. Your existing scripts shouldn't require any changes.

