Compare commits
2 Commits
46e4fda581
...
5d41cf4c53
Author | SHA1 | Date |
---|---|---|
Christopher Arndt | 5d41cf4c53 | |
Christopher Arndt | 2f00720d2b |
|
@ -45,9 +45,9 @@ proc activate(instance: Lv2Handle) {.cdecl.} =
|
||||||
|
|
||||||
|
|
||||||
proc run(instance: Lv2Handle; nSamples: cuint) {.cdecl.} =
|
proc run(instance: Lv2Handle; nSamples: cuint) {.cdecl.} =
|
||||||
let amp = cast[ptr Amp](instance)
|
let gain = cast[ptr Amp](instance)
|
||||||
for pos in 0 ..< nSamples:
|
for pos in 0 ..< nSamples:
|
||||||
amp.output[pos] = amp.input[pos] * db2coeff(amp.gain[])
|
gain.output[pos] = gain.input[pos] * db2coeff(gain.gain[])
|
||||||
|
|
||||||
|
|
||||||
proc deactivate(instance: Lv2Handle) {.cdecl.} =
|
proc deactivate(instance: Lv2Handle) {.cdecl.} =
|
||||||
|
|
Loading…
Reference in New Issue