1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 08:09:41 +02:00
2010-01-24 09:19:39 +00:00

19 lines
390 B
Plaintext

(DOWNSAMPLE-PROTO-ALG
(NAME "down")
(ARGUMENTS ("rate_type" "sr") ("sound_type" "s"))
(SAMPLE-RATE "sr")
(START (MIN s))
(INLINE-INTERPOLATION T)
(STATE )
(INNER-LOOP "output = s")
(TERMINATE (MIN s))
(LOGICAL-STOP (MIN s))
(TYPE-CHECK
" if (s->sr < sr) {
sound_unref(s);
xlfail(\"snd-down: output sample rate must be lower than input\");
}
")
)