gui: Use variable-sized input buffer for the audiod pipe.
[paraslash.git] / audioc.c
index 666990d..5c081da 100644 (file)
--- a/audioc.c
+++ b/audioc.c
@@ -151,6 +151,8 @@ int main(int argc, char *argv[])
                                goto out;
                        }
                        loaded -= ret;
+                       if (loaded && ret)
+                               memmove(buf, buf + ret, loaded);
                }
        }
 out: