mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
nixosTests.castopod: fix mp3 generation
Fix `--cbr` encoding mode.
This commit is contained in:
parent
dddad8555c
commit
992735db22
@ -208,7 +208,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }:
|
||||
text = ''
|
||||
out=/tmp/podcast.mp3
|
||||
sox -n -r 48000 -t wav - synth ${targetPodcastDuration} sine 440 `
|
||||
`| lame --noreplaygain -cbr -q 9 -b 320 - $out
|
||||
`| lame --noreplaygain --cbr -q 9 -b 320 - $out
|
||||
FILESIZE="$(stat -c%s $out)"
|
||||
[ "$FILESIZE" -gt 0 ]
|
||||
[ "$FILESIZE" -le "${toString targetPodcastSize}" ]
|
||||
|
Loading…
Reference in New Issue
Block a user