home *** CD-ROM | disk | FTP | other *** search
- WatchRing 1.10
- Rick Hudson, rick@actrix.gen.nz
-
- This archive contains a pair of modules to detect the phone ringing via a
- modem and plays a sound sample when it does. Simply run the two modules,
- switch on your modem and wait for the phone to ring.
-
- Version 1.10 is basically the same WatchRing (previously called WatchRing)
- module but the supplied voice module, RingIn, has a bug fixed. It was
- possible for the ring voice to not detach itself from the sound system and
- remain as your system bell. This happened if another ring signal was received
- while the sample was already playing.
-
- The module works by watching for the string <CR><LF>RING<CR><LF> coming in
- through the serial port so you need to be sure that your modem does generate
- this message when the phone rings (it should come up in the window of a comms
- program). The more natural way to implement this would have been to simply
- monitor the RI line which some modems use to indicate the phone ringing. The
- problem with this however is that not all modems do this and the serial
- cable to the Arc is often wired so that RI is used for the DCD (to
- circumvent an old serial port bug).
-
- The RingIn module that actually plays the sound must supply a command called
- 'Splay_RingIn' to play the sounds. Because of this it cannot be replaced by
- just any old voice module. The reason for this is that the module is a
- 'transient voice' and does not attach itself to the system until it's needed
- at which point it borrows channel 1, plays the sound and releases the
- channel it when it's finished. A sample converter that I have written (soon
- to be released into the PD) can generate voice modules suitable for
- WatchRing, so e-mail me at the address above (if you can't find it on a PD
- archive) if you want me to send a copy of this so you can use your own
- samples. You will, of course, need a sample in some other format first.
-
- Because of the transient nature of the sound playing, if the sound system is
- being used when the phone rings it is possible that something will crash!
- This is because I couldn't figure out how to determine if a channel was free
- or not. I usually switch off my modem when the computer is playing music or
- something.
-
- Some things you may find annoying: The supplied phone sample is a New
- Zealand phone and the sample is played at a fixed volume independant of the
- system setting. The latter is not because of sloppy programming but because
- that's how I wanted it. The module generator allows various volume 'modes',
- one of which is a fixed independant volume setting.
-
- Disclaimer: This software is supplied 'as is' and I cannot guarantee that it
- will work on your computer/modem setup. I will not be held responsible for
- any 'effects' caused by the use of this program. I would nevertheless be
- interested to hear any problems you may have.
-
- History:
-
- 1.00 First released version
- 1.10 Rewrote module because I lost the source code! Fixed bug in voice
- module generator that sometimes caused voice to be left as system bell.
-
-
- Using !SoundCon to create a voice module for WatchRing
- ------------------------------------------------------
-
- AS noted above, the !SoundCon application is probably the best application
- for generating a voice module to use with WatchRing. The important thing is
- that the command SPlay_RingIn exists that plays the required sound.
-
- - To make the module, drag the sound sample you want to use on to SoundCon
- which should be identified as the correct sample. SoundCon will report the
- type as being 'Raw data?' if it doesn't recognise it.
-
- - Open the convert window (from icon bar or info window menus) and
- open the Type pop-up menu. Select VoiceMod as the major format and ensure
- that the sub-format is set to 'Transient' and 'Fixed freq'. The volume
- type is a matter of taste (see SoundCon help for details).
-
- - Change the name in the savebox to RingIn (this is important) and save it
- somewhere. There's your new phone ring module!
-