forge
Explore
Log in

Don't you dare go Hollow

fixtures: flac 3.0/4.0/5.0/7.1 48 kHz layout sources for the layout-bar test (were never recipes); FREQS extended to 8 tones, existing outputs unchanged

Browse files at this commit

32d69158e20de5a22cfc36a7e6784ae5aaede898Ahmet Kaan GümüşParent: 5641a76
scripts/fixtures.d/audio.shmodified+11 -1
@@ -1,4 +1,4 @@
1-FREQS=(220 440 660 55 880 1320)
1+FREQS=(220 440 660 55 880 1320 990 1100)
22 LAYOUTS=("mono|1" "stereo|2" "5.1|6")
33 RATES=(44100 48000)
44 AUDIO_CODECS=(
@@ -28,7 +28,11 @@ build_audio_in() {
2828 case $nch in
2929 1) layout=mono ;;
3030 2) layout=stereo ;;
31+ 3) layout=3.0 ;;
32+ 4) layout=4.0 ;;
33+ 5) layout=5.0 ;;
3134 6) layout=5.1 ;;
35+ 8) layout=7.1 ;;
3236 esac
3337 for ((i = 0; i < nch; i++)); do expr+="0.125*sin(2*PI*${FREQS[i]}*t)|"; done
3438 AIN=(-f lavfi -i "aevalsrc=${expr%|}:s=${rate}:d=3:c=${layout}")
@@ -68,6 +72,12 @@ fam_audio() {
6872 mk audio/alac24-mp4-${lname}-48000.m4a "${AIN[@]}" "${AMAP[@]}" -c:a alac -sample_fmt s32p $T1 -ar 48000
6973 done
7074
75+ for lspec in "3.0|3" "4.0|4" "5.0|5" "7.1|8"; do
76+ IFS='|' read -r lname nch <<<"$lspec"
77+ build_audio_in "$nch" 48000
78+ mk audio/flac-${lname}-48000.flac "${AIN[@]}" "${AMAP[@]}" -c:a flac $T1 -ar 48000
79+ done
80+
7181 for spec in "${AAC_TOOL_VARIANTS[@]}"; do
7282 IFS='|' read -r vname vargs <<<"$spec"
7383 read -r -a VARGS <<<"$vargs"