mirror of
https://github.com/romanz/amodem.git
synced 2026-04-21 05:36:42 +08:00
cli: add gain option for sender
This commit is contained in:
@@ -119,9 +119,13 @@ def create_parser(description, interface):
|
|||||||
sender.add_argument(
|
sender.add_argument(
|
||||||
'-o', '--output', help='output file (use "-" for stdout).'
|
'-o', '--output', help='output file (use "-" for stdout).'
|
||||||
' if not specified, `aplay` tool will be used.')
|
' if not specified, `aplay` tool will be used.')
|
||||||
|
sender.add_argument(
|
||||||
|
'-g', '--gain', type=float, default=1.0,
|
||||||
|
help='Modulator gain (defaults to 1)')
|
||||||
sender.set_defaults(
|
sender.set_defaults(
|
||||||
main=lambda config, args: main.send(
|
main=lambda config, args: main.send(
|
||||||
config, src=wrap(Compressor, args.src, args.zlib), dst=args.dst
|
config, src=wrap(Compressor, args.src, args.zlib), dst=args.dst,
|
||||||
|
gain=args.gain
|
||||||
),
|
),
|
||||||
calib=lambda config, args: calib.send(
|
calib=lambda config, args: calib.send(
|
||||||
config=config, dst=args.dst,
|
config=config, dst=args.dst,
|
||||||
|
|||||||
Reference in New Issue
Block a user