summaryrefslogtreecommitdiffstats
path: root/vbox.h
diff options
context:
space:
mode:
authorAndreas Eversberg2010-01-16 11:20:23 +0100
committerAndreas Eversberg2010-01-16 11:20:23 +0100
commitb0bd74e35e935aa976b68c594def4e8d2c22ef95 (patch)
tree7e7033beb3b9b1a1976d58ce4e16c6f965a3c9fc /vbox.h
parentAdded new option to interface.conf: "nonotify" to disable notify messages. (diff)
downloadlcr-b0bd74e35e935aa976b68c594def4e8d2c22ef95.tar.gz
lcr-b0bd74e35e935aa976b68c594def4e8d2c22ef95.tar.xz
lcr-b0bd74e35e935aa976b68c594def4e8d2c22ef95.zip
Replaced polling loop for LCR and chan_lcr with select based event loop.
Now LCR and chan_lcr will not use any CPU until there is work to do.
Diffstat (limited to 'vbox.h')
-rw-r--r--vbox.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/vbox.h b/vbox.h
index b07ab5b..ac9ccfb 100644
--- a/vbox.h
+++ b/vbox.h
@@ -16,7 +16,7 @@ class VBoxPort : public Port
VBoxPort(int type, struct port_settings *settings);
~VBoxPort();
int message_epoint(unsigned int epoint_id, int message, union parameter *param);
- int handler(void);
+ void send_announcement(void);
private:
struct EndpointAppPBX *p_vbox_apppbx; /* pbx application */
@@ -29,9 +29,10 @@ class VBoxPort : public Port
signed int p_vbox_announce_left; /* the number of bytes left of announcement sample */
signed int p_vbox_announce_size; /* size of current announcement (in bytes) */
int p_vbox_mode; /* type of recording VBOX_MODE_* */
- double p_vbox_audio_start; /* time stamp of starting of audio (<1 == not yet started) */
+ long long p_vbox_audio_start; /* time stamp of starting of audio (0 == not yet started) */
unsigned int p_vbox_audio_transferred; /* number of samples sent to endpoint */
- signed int p_vbox_record_start; /* start for recording */
+ struct lcr_timer p_vbox_announce_timer; /* timer for sending announcement */
+ struct lcr_timer p_vbox_record_timeout; /* timer for recording limit */
signed int p_vbox_record_limit; /* limit for recording */
struct extension p_vbox_ext; /* save settings of extension */