backup
[lcr.git] / main.h
diff --git a/main.h b/main.h
index 2519970..3398cdf 100644 (file)
--- a/main.h
+++ b/main.h
@@ -58,17 +58,16 @@ void _printerror(const char *function, int line, const char *fmt, ...);
  */
 #define DEBUG_LOG      0x7fff
 
-/* 
- * transmit interval for tones and announcements (or samples of all kind)
- * 
- */
-#define ISDN_TRANSMIT  128
-
 /*
  * preload transmit buffer to avoid gaps at the beginning due to jitter
- * keep this 0 for minimum delay
+ * this is also the maximum load that will be kept in tx-buffer
+ */
+#define ISDN_PRELOAD   128 // 1024 samples
+
+/* 
+ * interval for refreshing transmit buffer
  */
-#define ISDN_PRELOAD   0
+#define ISDN_TRANSMIT  32 // 256 samples
 
 /* give sendmail program. if not inside $PATH, give absolute path here (e.g. "/usr/sbin/sendmail")
  */
@@ -114,7 +113,7 @@ void _printerror(const char *function, int line, const char *fmt, ...);
 extern "C" {
 #endif
 #include <isdn_net.h>
-#include <net_l3.h>
+#include <../i4lnet/net_l3.h>
 #ifdef __cplusplus
 }
 #endif
@@ -139,6 +138,7 @@ extern "C" {
 #include "tones.h"
 #include "crypt.h"
 #include "admin_server.h"
+#include "trace.h"
 
 extern double now_d;
 extern time_t now;
@@ -146,5 +146,8 @@ extern struct tm *now_tm;
 extern struct timeval now_tv;
 extern struct timezone now_tz;
 
+#define DIRECTION_NONE 0
+#define DIRECTION_OUT  1
+#define DIRECTION_IN   2