From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS6130 216.105.38.0/24 X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,T_DKIM_INVALID shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id C2A2F1F954 for ; Sun, 19 Aug 2018 13:59:38 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1frOEv-00050C-3f; Sun, 19 Aug 2018 13:59:33 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1frOEt-0004zr-Gm for sox-users@lists.sourceforge.net; Sun, 19 Aug 2018 13:59:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:To:Subject:Message-ID:Date:From: MIME-Version:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=RflZiCo+dNbjqcd+nabNMPILcs5qt2A0k/eJBL9fGzU=; b=dg9cLoo5z/s8UlLvrvcGiM/zDL P3hF8LDpl4jmnBQnAr5KODydjg0hFXYT0Jg18YieVlc4I345/7TiLqGZB2S+24hDzlGTomU7ngva0 4Fhke0FCoHbGMk+k/0jM5SwDXjIoFl2FEobCkjIGb/Clsggjv18eeKI//VL1uQMs4sT8=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:To:Subject:Message-ID:Date:From:MIME-Version:Sender:Reply-To :Cc:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=RflZiCo+dNbjqcd+nabNMPILcs5qt2A0k/eJBL9fGzU=; b=f 5feVIDBGbjKnTKFhdeenUaud93Scv4lqlM36Xt48zXxrv6VYiI6DNjYQikGBHK4Tl1JTHWyn/l3WJ P5LLdBq6cefdtuqXp0nqhhrf6rpuOA/k1cGFd+wFeZ/ssCyRgs5OOxmrFSDb9NHtT8HWHklExxxVB yy6LrvaRjxzKAK2M=; Received: from mail-lf1-f41.google.com ([209.85.167.41]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) id 1frOEr-00858o-Jf for sox-users@lists.sourceforge.net; Sun, 19 Aug 2018 13:59:31 +0000 Received: by mail-lf1-f41.google.com with SMTP id a134-v6so9005810lfe.6 for ; Sun, 19 Aug 2018 06:59:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=RflZiCo+dNbjqcd+nabNMPILcs5qt2A0k/eJBL9fGzU=; b=FIE3DzwTID8mVwN/mK4Rz+2SFQtjpIoJNBvk3iVuE3mUmPN9PC3XyGNzT0oD2rGN8f Nrv4Dl74tefN0lGuYTwrJPWZeyrWuC19yMAYe1Ws3qBCKGu91ddyhijtr0vQHBpxP32c WXqRR12uz0LfXNiteEvyU+o0LTSvE8GrXfiobXgNSvv6wblB4bMZO9q607XZr1EfP9S9 KC9g+xaRn8DC73Jg1nFu4NJxgOMYx8Wa5kfRf445NV6Inls4rBap1SUR3NVeQdGREi5o y4kKk2kK2Y+mtJQoRhv/MQfCnDox6ijgFy4Myp13Mism4lEdc5O3G0zsgEH8letDIgSL nnFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RflZiCo+dNbjqcd+nabNMPILcs5qt2A0k/eJBL9fGzU=; b=j3GCosu8cdofTRmo5HTtWoykCC3D/ZTTDKiRo1WQw39imp8SwmKqDwoldG6wDDtvJl jz8HiAL5vRPLhdqKTwsWKRWMpCNzoSoDolN/xgTV7v+yD9utmyFNtLP1GAz7SBUoCBfv AsU4ln3Wvs7afohHPdrL9JMSLdKvDHe7+iZgHajTSU36n9y9UXjdePLCnwbYKJ6QaKNH 5s+gKs0sausWoNvjM8WS2uVb5bBCl7enFGIg8EAgOM5ibaB+35Xjboknw2fivMNB1UFb 5yEknV5N4BoMIB4wlkHaaanDekuOrIRR+AGLDoIBnfcqdVnLUr3C7TLNi6HsvrCIvG8r A7pQ== X-Gm-Message-State: AOUpUlFRgpvn0Hp4OY9vAyO3jySDbFS354h4qxuGGZS6Y+ReT++3OKVW cP1vdzh8CUTi/sN9icfLbiseu6dI7hXQ0CCZ17+gnPEXcNU= X-Google-Smtp-Source: AA+uWPxsMMzjQav2ibr7ylS5KxBGe+MpjcMcutMLUP/2teim9uJeEaYoJls/6q+CSAcWeAPHzHIpzeBggkyIoJdulKg= X-Received: by 2002:a19:1388:: with SMTP id 8-v6mr199343lft.12.1534687159182; Sun, 19 Aug 2018 06:59:19 -0700 (PDT) MIME-Version: 1.0 From: Lakomkin Egor Date: Sun, 19 Aug 2018 14:59:07 +0100 Message-ID: To: sox-users@lists.sourceforge.net X-Headers-End: 1frOEr-00858o-Jf Subject: Question about effects and reading data to the buffer X-BeenThere: sox-users@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-users@lists.sourceforge.net Content-Type: multipart/mixed; boundary="===============7372583253836345283==" Errors-To: sox-users-bounces@lists.sourceforge.net --===============7372583253836345283== Content-Type: multipart/alternative; boundary="000000000000f6e9080573ca3221" --000000000000f6e9080573ca3221 Content-Type: text/plain; charset="UTF-8" Hello, I am trying to programmatically load an audio file, apply tempo effect and read the output to the buffer for the further processing. I uploaded the gist of the example here: https://gist.github.com/EgorLakomkin/124a4b86dd8869d5536e2edceec0cc84 If I use tempo values < 1 I get the correct number of samples from the output, but if I change it for example to 1.2 I suddenly get a very small number of sample and 0 if I use the value of 1.0. I am wondering if there is a bug in my chain configuration or data reading from the output? It is my first experience with libsox and I tried to follow examples, but I got stuck here. Thank you in advance for the help! Regards, Egor --000000000000f6e9080573ca3221 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable --000000000000f6e9080573ca3221-- --===============7372583253836345283== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot --===============7372583253836345283== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sox-users mailing list Sox-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-users --===============7372583253836345283==--