Menu

#121 soxrc

open
nobody
None
5
2023-02-13
2008-08-04
robs
No

See attached.

Discussion

  • robs

    robs - 2008-08-04

    Template soxrc for /etc & $HOME

     
  • robs

    robs - 2008-08-04

    Logged In: YES
    user_id=27473
    Originator: YES

    See attached file.

     
  • Pascal Giard

    Pascal Giard - 2008-08-04

    Logged In: YES
    user_id=36773
    Originator: NO

    I'm not arguing the feature itself but wondering why not use a sox.conf filename instead of the less frequently used *rc filename?

     
  • Reuben Thomas

    Reuben Thomas - 2008-09-23

    I want this too: I want to be able to specify a large input buffer when playing URLs.

    As far as the name goes, ".conf" is more logical, even if "rc" has historical currency. But it's not very important.

     
  • Reuben Thomas

    Reuben Thomas - 2008-09-23

    A comment on the sample rc file: sometimes you say "similar to" a given command line option. The rc options should be *identical to* command line options, and the parsers automatically generated from the same source. I suggest that lines should look like this:

    [EFFECT|FORMAT =]OPTION...

    which means: for the given effect or format, use the relevant options (or if none is specified, always use them).

    You could add some pseudo-effect or format options. For example, for my use, I'd like to specify a large input buffer, but only when reading from the internet, so a "url" pseudo-format could be used:

    url = input-buffer=1000000

    I suggest you look into using libpopt, as it already provides support for configuration files using command-line arguments.

     
  • Chris Bagwell

    Chris Bagwell - 2008-10-26

    A note about a related feature. SoX 14.2.0 will have a new --effects-file option. It reads a file and uses its contents just like user specified it on the command line. Adding a --files-file that works in the vein but for filenames and related options wouldn't be to hard to add. The main problem with current code though is that they are used in place of and not a complement of command line options.

    Reviewing the sample config file and requests for url/format specific default, I think the real requests seems to be limited to auto-setting --options and not so much short hands for filenames or effect names. Since we have the --effects-file now, who ever adds this can concentrate on just fixed and conditional option setting.

    I looked at libpopt a little bit and seems like it would be about the same amount of work to write custom alias support in a custom config file then it would to reorganize our internals to support it. The custom version would be much more flexible as well. libpopt is a nice concept though over all.

     
  • robs

    robs - 2009-03-23

    Note that we now have SOX_OPTS (which doesn't necessarily supersede soxrc/sox.conf but may reduce its priority).

     
  • Jan Starý

    Jan Starý - 2013-02-02

    Has this ever been implemetned?
    The manpage doesn't mention a ~/.soxrc file

     
  • robs

    robs - 2013-02-03

    No, it's not been implemented; still looks that, to some extent, it's useful to do so.

     
  • Jan Starý

    Jan Starý - 2023-02-13

    Can we please close this, after more than a decade?

    As to the feature itself: the proposed .soxrc introduces new syntax,
    which would require a new parser, as if that's not a mess already.

    If sox ever has this, let's agree the syntax has to be identical to the command line;
    at which point the only feature is that you don;t have to type it;
    which imho means it's not even worth the extra complexity.

     

Log in to post a comment.