mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-20 17:41:13 +02:00
Move library tree where it belongs
This commit is contained in:
18
lib-src/libnyquist/nyquist/tran/downproto.alg
Normal file
18
lib-src/libnyquist/nyquist/tran/downproto.alg
Normal file
@@ -0,0 +1,18 @@
|
||||
(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\");
|
||||
}
|
||||
")
|
||||
)
|
||||
|
Reference in New Issue
Block a user