vgetty, stopping recording, slow PC - solution

Mariusz Potocki (potok@friko.onet.pl)
Thu, 12 Feb 1998 08:25:27 +0100


This post is directed to folks, who have slow PC (e.g. 486DX33), Rockwell based
modems and problem with stopping voice recording.

After some days of tweaking I managed it. It stops now.
If you want to try my patch, apply belowed one.

--- Rockwell.c.orig  Fri Aug 8 10:12:24 1997
+++ Rockwell.c Wed Feb 11 21:19:29 1998
@@ -576,22 +576,20 @@
 
 int Rockwell_stop_recording (void)
 {
-  /*
- * char buffer[VOICE_BUF_LEN];
- */
+  
+  char buffer[VOICE_BUF_LEN];
 
 stop_recording = TRUE;
 
-  /*
- * It seems not all Rockwell modems support <DLE> <!> to stop
- * the recording, so we change this back to the old way
- *
- * sprintf(buffer, "%c!", DLE);
- * lprintf(L_JUNK, "%s: <DLE> <!>", program_name);
- */
+  sprintf(buffer, "!");
+  lprintf(L_JUNK, "%s: <!>", program_name);
 
+  /*
 if (voice_write("!") != OK)
   return(FAIL);
+  */
+  if (voice_write_raw(buffer, strlen(buffer)) != OK)
+  return(FAIL);
 
 return(OK);
 }

--------------------------------------------------
It works for me with generic settings in voice.conf

Mariusz

  "verba volant,
   scripta manent"
.