And the following hack on meetme ... need to find out why usleep works
but tsleep does not.
--- app_meetme.c.org Fri Jul 30 13:39:07 2004
+++ app_meetme.c Fri Jul 30 13:42:01 2004
@@ -155,11 +155,14 @@
int res;
int x;
while(len) {
- x = ZT_IOMUX_WRITE | ZT_IOMUX_SIGEVENT;
- res = ioctl(fd, ZT_IOMUX, &x);
- if (res >= 0)
+// x = ZT_IOMUX_WRITE | ZT_IOMUX_SIGEVENT;
+// res = ioctl(fd, ZT_IOMUX, &x);
+// if (res >= 0)
+ /* Change this to write till the buffer is full then
wait till there is enough room */
res = write(fd, data, len);
if (res < 1) {
++ /* buffer full so I wait 8 samples (1 ms) to
let other threads have a go*/
++ usleep(1000);
if (errno != EAGAIN) {
ast_log(LOG_WARNING, "Failed to write
audio data to conference: %s\n", strerror(errno));
return -1;
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum