sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: Erich Eckner <erich@eckner.net>
To: sox-users@lists.sourceforge.net
Subject: Re: Help with fractions re: resampling
Date: Wed, 07 Jan 2015 07:37:34 +0100	[thread overview]
Message-ID: <54ACD42E.1020507@eckner.net> (raw)
In-Reply-To: <9285E5E6-B775-49E0-A62F-730AAF861575@farski.com>


[-- Attachment #1.1: Type: text/plain, Size: 1916 bytes --]

Hi,

first: I don't know the sox source code, so I have no Idea, what
sox/soxr really does, but:

Why don't you give it a different amount of frames, like 4800? So you
would get 4410 frames back and everything is fine.

greetings,
Erich

Am 06.01.2015 22:58, schrieb Christopher Paul Kalafarski:
> I’m really struggling with what I thought would be relatively simple process of reading a file (with libsndfile), resampling it (using soxr), and writing it back to disk (with sndfile again). I realize this list is for neither of those libraries, but afaik soxr is extracted from SoX just with a different API, and I think my issue is in dealing with the resulting data, and not the API.
> 
> My main confusion is that if I pass in, e.g., 4096 frames at 48000, and resample to 44100, mathematically I would expect to get back 3763.2 frames. What is the proper way to handle the 0.2 frames in this case? Does the library handle that transparently? Or should I be doing some amount of math to figure out leap-frames every few cycles? No examples I’ve seen explicitly handle this, so I’m guessing it’s unnecessary, but I’m running out of other avenues to try to fix the problem I’m having, so I’ve kind of gone back to basics.
> 
> Thanks for any help.
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> Sox-users mailing list
> Sox-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sox-users
> 



[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 834 bytes --]

[-- Attachment #2: Type: text/plain, Size: 440 bytes --]

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

  reply	other threads:[~2015-01-07  6:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-06 21:58 Help with fractions re: resampling Christopher Paul Kalafarski
2015-01-07  6:37 ` Erich Eckner [this message]
2015-01-07 14:37   ` Christopher Paul Kalafarski
2015-01-08  6:28 ` Rob Sykes

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-users

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54ACD42E.1020507@eckner.net \
    --to=sox-users@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).