}
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;
/*
* 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)
{
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)
+{
}
* process transmission clock */
int Port::handler(void)
{
- port
-
return(0);
}