From: Lakomkin Egor <egor.lakomkin@gmail.com>
To: sox-devel@lists.sourceforge.net
Subject: Question about effects and reading data to the buffer
Date: Sun, 19 Aug 2018 15:03:53 +0100 [thread overview]
Message-ID: <CAHKQwwX6uLa-5=qF62vGZQ+ieU4aFmRr3hO9+HKKjxwWzsdKuw@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 847 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1075 bytes --]
[-- Attachment #2: Type: text/plain, Size: 202 bytes --]
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
[-- Attachment #3: Type: text/plain, Size: 158 bytes --]
_______________________________________________
SoX-devel mailing list
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel
reply other threads:[~2018-08-19 14:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.sourceforge.net/lists/listinfo/sox-devel
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAHKQwwX6uLa-5=qF62vGZQ+ieU4aFmRr3hO9+HKKjxwWzsdKuw@mail.gmail.com' \
--to=sox-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/sox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).