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