mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-28 16:23:49 +01:00
Move library tree where it belongs
This commit is contained in:
18
lib-src/libnyquist/nyquist/tran/upsample.alg
Normal file
18
lib-src/libnyquist/nyquist/tran/upsample.alg
Normal file
@@ -0,0 +1,18 @@
|
||||
(UP-ALG
|
||||
(NAME "up")
|
||||
(ARGUMENTS ("rate_type" "sr") ("sound_type" "input"))
|
||||
(INLINE-INTERPOLATION T)
|
||||
(SAMPLE-RATE "sr")
|
||||
(START (MIN input))
|
||||
(INNER-LOOP "output = (sample_type) input")
|
||||
(LINEAR input)
|
||||
(TERMINATE (MIN input))
|
||||
(LOGICAL-STOP (MIN input))
|
||||
(TYPE-CHECK
|
||||
" if (input->sr > sr) {
|
||||
sound_unref(input);
|
||||
xlfail(\"snd-up: output sample rate must be higher than input\");
|
||||
}
|
||||
")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user