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 6D7111F954 for ; Sun, 19 Aug 2018 14:04:22 +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 1frOJT-0005ez-B6; Sun, 19 Aug 2018 14:04:15 +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 1frOJS-0005ek-7x for sox-devel@lists.sourceforge.net; Sun, 19 Aug 2018 14:04:14 +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=L8GZezNfsfF42+5yDRf75nuXXZb7j1lk7r5QWZeIf3s=; b=RrN94jN1xdXdxkP4s5UIxr+0Ae z0bYPZXkwXoJkCtS7HCcSPi0jyEqOAaG8N0IJ2VkpDYeM7XNNfilcB5L4Bsz7sqE6RaqOWQR/fwWC OkOoUnF5Twirojtz21H0vn9I/hDqt4o3yE6GjG/JAxlFLoiYsP+/m6i3PLehx6ihgsV8=; 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=L8GZezNfsfF42+5yDRf75nuXXZb7j1lk7r5QWZeIf3s=; b=j YhxZA7ZGG8VSkZaX3PmYp0T8Alujd3X1NuJUG648e5+r7MIsREFQKX8A61FcZBq+6+FeWGdsPZlrh w6pzU1AmEbp5vXGvhb6904JycitNhroCyyOxbW2o9ZMvVCjhVv2NCtgtC83aKmvFz/1T0mAR6jXPa D/R7NbC4dCezINKY=; Received: from mail-lf1-f48.google.com ([209.85.167.48]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) id 1frOJQ-008lRn-Fe for sox-devel@lists.sourceforge.net; Sun, 19 Aug 2018 14:04:14 +0000 Received: by mail-lf1-f48.google.com with SMTP id r4-v6so1982486lff.12 for ; Sun, 19 Aug 2018 07:04:12 -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=L8GZezNfsfF42+5yDRf75nuXXZb7j1lk7r5QWZeIf3s=; b=rIIAj3wJCCBVClix1CYcrZfq07M01AW3FleEThJU/5SlHzci/VZL2H+ZKIqjF9YzqS HGitleUSXEsRXBbX3Edj9vfvkR0dfp5bg584dvKKWzqUZz+xXNO+/pXy9jFBV4XiqQ7V +UlCsqr2GFtKN5l3rCG8EMuQqIf+7tH/xMr2TEtAV2ybP72PppEebatj3tOW0KqApQ7V qtiAZVxtBMJOQKzecmzQOcO67v4veejYwrw/Y9R/P3qXJG+pmQIdKSKfsgbiS+x8Xf7I IXIRA+nxbjFrJRQhuH7K8lA6k3BDUvFdtHlKIil5J0C4yRp/ehr3GnaINDNf3AeIfci/ Rw8g== 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=L8GZezNfsfF42+5yDRf75nuXXZb7j1lk7r5QWZeIf3s=; b=qkst2YKf7gcjzL3IkJBFJboo4tWVS9CQiOYXKwB0SGjkZqyUWENqRmJAstbnELjVdw 26v0Ymru5vERzVXcK95nUQQYTv5Y68utfmrwS0VQ/XV4mnpJ/vMMX4W1RUBvk70EXubz cbbLTSnfeBURbhO6Yc6XAM+RikoanZsU+IyTJVCayEH1/HuX+L2Qfq2ve7f8OzGNFqa2 WPXNWdVEi5ZHsAlGylAptXvMSNX5jTe3HCRpw3yKL7S5+2GejNszlCpw27/yoNSTBQuk X3TxLFFIXgTzDtSJwfelP9DGNFON4/jRgOMMv5brNJGuRrpO0FI+raPSLfLY0HYIvHAm Lbag== X-Gm-Message-State: AOUpUlFt4wTrvl5u8xuic3iqjvw5Gj54nUpqSk4+qmROC/+B4+Gu2E1k AMRYqWxjImlw/FiLWomaGwv9zapQTSpyQvkDbVgpBUKwLB8= X-Google-Smtp-Source: AA+uWPySH1znvCCipIrDg2/D7sEPEkCodINYUV4eU1YRJsYm0UEypm6OOpUw0EGou+y0J7db46ZLG48p89KwBjDfvNE= X-Received: by 2002:a19:145b:: with SMTP id k88-v6mr9884051lfi.132.1534687445192; Sun, 19 Aug 2018 07:04:05 -0700 (PDT) MIME-Version: 1.0 From: Lakomkin Egor Date: Sun, 19 Aug 2018 15:03:53 +0100 Message-ID: To: sox-devel@lists.sourceforge.net X-Headers-End: 1frOJQ-008lRn-Fe Subject: Question about effects and reading data to the buffer X-BeenThere: sox-devel@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-devel@lists.sourceforge.net Content-Type: multipart/mixed; boundary="===============3005313985799258588==" Errors-To: sox-devel-bounces@lists.sourceforge.net --===============3005313985799258588== Content-Type: multipart/alternative; boundary="00000000000003136d0573ca44b3" --00000000000003136d0573ca44b3 Content-Type: text/plain; charset="UTF-8" Apologies for potential multiple messages, firstly I sent the message to the sox-users, but then realized that my question is maybe more appropriate for sox-devel. 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 --00000000000003136d0573ca44b3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Apologies for potential multiple messages, firstly I sent = the message to the sox-users, but then realized that my question is maybe m= ore appropriate for sox-devel.

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 upl= oaded the gist of the example here: https://gist.github.com/EgorLako= mkin/124a4b86dd8869d5536e2edceec0cc84
If I use tempo values &= lt; 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 confi= guration or data reading from the output? It is my first experience with li= bsox and I tried to follow examples, but I got stuck here.

Thank you in advance for the help!

Regard= s, Egor=C2=A0
--00000000000003136d0573ca44b3-- --===============3005313985799258588== 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 --===============3005313985799258588== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel --===============3005313985799258588==--