** **
\*****************************************************************************/
+/* this test produces a test tone to test gaps in audio stream */
+//#define SEAMLESS_TEST
+
+#define QUEUE_BUFFER_SIZE 8192 /* must be the power of two */
+#define QUEUE_BUFFER_MAX 4096 /* half of size */
struct bchannel {
struct bchannel *next;
int b_dtmf;
int b_bf_len;
unsigned char b_bf_key[128];
+ int nodsp_queue; /* enables nodsp_queue_buffer */
+ unsigned char nodsp_queue_buffer[QUEUE_BUFFER_SIZE];
+ /* buffer for seamless transmission */
+ unsigned int nodsp_queue_in, nodsp_queue_out;
+ /* in and out pointers */
+ int queue_sent; /* data for mISDN was not confrmed yet */
+#ifdef SEAMLESS_TEST
+ int test;
+#endif
};
int bchannel_initialize(void);
void bchannel_deinitialize(void);
void bchannel_destroy(struct bchannel *bchannel);
-int bchannel_create(struct bchannel *channel, int mode);
+int bchannel_create(struct bchannel *channel, int mode, int queue);
void bchannel_activate(struct bchannel *channel, int activate);
void bchannel_transmit(struct bchannel *channel, unsigned char *data, int len);
void bchannel_join(struct bchannel *channel, unsigned short id);