implented audio processing function in Lua