summaryrefslogtreecommitdiffstats
path: root/port.cpp
diff options
context:
space:
mode:
authorSuper User2007-05-19 19:45:42 +0200
committerSuper User2007-05-19 19:45:42 +0200
commita17752d887eb9eb975dce3453ab3d176a2818cb1 (patch)
tree3b1918d4121467cd8ae646e38729cc586adac506 /port.cpp
parentbackup (diff)
downloadlcr-a17752d887eb9eb975dce3453ab3d176a2818cb1.tar.gz
lcr-a17752d887eb9eb975dce3453ab3d176a2818cb1.tar.xz
lcr-a17752d887eb9eb975dce3453ab3d176a2818cb1.zip
backup
Diffstat (limited to 'port.cpp')
-rw-r--r--port.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/port.cpp b/port.cpp
index a3a33c8..0c043df 100644
--- a/port.cpp
+++ b/port.cpp
@@ -141,7 +141,8 @@ Port::Port(int type, char *portname, struct port_settings *settings)
}
SCPY(p_name, portname);
SCPY(p_tone_dir, p_settings.tones_dir); // just to be sure
- p_clock = 0;
+ p_last_tv_sec = 0;
+ p_last_tv_msec = 0;
p_type = type;
p_serial = port_serial++;
p_debug_nothingtosend = 0;
@@ -474,6 +475,7 @@ void Port::set_vbox_speed(int speed)
/*
* read from the given file as specified in port_set_tone and return sample data
+ * silence is appended if sample ends, but only the number of samples with tones are returned
*/
int Port::read_audio(unsigned char *buffer, int length)
{
@@ -636,7 +638,15 @@ try_loop:
goto read_more;
done:
- return(length);
+ return(length-len);
+}
+
+
+/*
+ * dummy for transmit function, since this must be inherited
+ */
+void Port::transmit(unsigned char *buffer, int length, int tonelength)
+{
}
@@ -644,8 +654,6 @@ done:
* process transmission clock */
int Port::handler(void)
{
- port
-
return(0);
}