+# how often to play sounds when reconnecting.
+NOISE_PERIOD=180
+
+# when we last played a sound.
+LAST_SOUND_TIME=0
+
+play_sound_periodically()
+{
+ CURRENT_TIME=$(date +"%s")
+ if (( $CURRENT_TIME - $LAST_SOUND_TIME >= $NOISE_PERIOD )); then
+ echo playing sound now.
+ bash $FEISTY_MEOW_SCRIPTS/multimedia/sound_play.sh $soundfile &>/dev/null </dev/null &
+#hmmm: parameterize this for the sound to be played. doofus.
+ LAST_SOUND_TIME=$CURRENT_TIME
+ fi
+}
+
+##############
+