Lines Matching full:effects
145 /* Effects */
147 /* We parse effects into a temporary effects table and then place into
148 * the real effects chain. This allows scanning all effects to give
150 * when mixer or resample effects need to be auto-inserted as well.
159 /* Size of memory structures related to effects arguments (user_effargs[i],
162 static size_t *nuser_effects = NULL; /* array: number of effects in each chain */
166 /* Indicates that not only the first effects chain is in effect (hrm), but
684 lsx_warn("%s: effects that modify audio should not follow dither", in add_effect()
703 exit(2); /* The effects chain should have displayed an error message */ in auto_effect()
708 * additional effects chain beyond value of eff_chain_count. It
709 * does not unconditionally increase size of effects chain.
723 * one effects chain (with index eff_chain_count) such that
790 /* pseudo-effect ":" is used to create a new effects chain */ in parse_effects()
793 /* Only create a new chain if current one has effects. in parse_effects()
906 lsx_fail("Cannot open effects file `%s': %s", filename, strerror(errno)); in read_user_effects()
910 lsx_report("Reading effects from file `%s'", filename); in read_user_effects()
928 lsx_fail("Error reading effects file `%s' (not a text file?)", filename); in read_user_effects()
955 * filled in. This recovers from side affects of pseudo-effects. in read_user_effects()
966 lsx_fail("Error reading effects file `%s': %s", filename, strerror(errno)); in read_user_effects()
973 /* user explicitly wanted an empty last effects chain, in read_user_effects()
977 /* there's one unneeded effects chain */ in read_user_effects()
982 /* Creates users effects and passes in user specified options.
983 * This is done without putting anything into the effects chain
989 * To keep things simple, we create all user effects. Later, when
1027 /* Add all user effects to the chain. If the output effect's rate or
1028 * channel count do not match the end of the effects chain then
1029 * insert effects to correct this.
1031 * This can be called with the input effect already in the effects
1051 /* Add user specified effects; stop before `dither' */ in add_effects()
1056 exit(2); /* Effects chain should have displayed an error message */ in add_effects()
1060 /* Add auto effects if still needed at this point */ in add_effects()
1082 /* Add user specified effects from `dither' onwards */ in add_effects()
1086 exit(2); /* Effects chain should have displayed an error message */ in add_effects()
1106 "effects chain: %-10s %7gHz %2u channels %7s %2u bits %s" : in add_effects()
1107 "effects chain: %-10s %7gHz %2u channels"; in add_effects()
1108 sox_effect_t const * effp = &chain->effects[i][0]; in add_effects()
1126 /* If input file reached EOF then delete all effects in current in advance_eff_chain()
1327 * could change the value to effects options in update_status()
1349 * is true for a restarted or additional effects chain (relative positioning in optimize_trim()
1354 strcmp(effects_chain->effects[1][0].handler.name, "trim") == 0) { in optimize_trim()
1356 uint64_t offset = sox_trim_get_start(&effects_chain->effects[1][0]); in optimize_trim()
1362 sox_trim_clear_start(&effects_chain->effects[1][0]); in optimize_trim()
1489 * don't matter FIXME: This doesn't work for multi-file processing or effects in open_output_file()
1681 /* The input encoding parameters passed to the effects chain are those of in set_combiner_and_output_encoding_parameters()
1705 { /* Input(s) -> Balancing -> Combiner -> Effects -> Output */ in process()
1739 effects chain). */ in process()
1877 printf("EFFECTS:"); in display_supported_effects()
1911 "--effects-file FILENAME File containing effects and options", in usage()
1927 "--multi-threaded Enable parallel effects channels processing" in usage()
1937 "--single-threaded Disable parallel effects channels processing", in usage()
2164 {"effects-file" , lsx_option_arg_required, NULL, 0},
2951 /* Loop through the rest of the arguments looking for effects */ in main()
2978 /* If user specified an effects filename then use that file in main()
2979 * to load user effects. Free any previously specified options in main()