Skip to content

Commit

Permalink
ssrclient: move require() to the top of the file again
Browse files Browse the repository at this point in the history
For some reason, it didn't work in pd-extended for Mac OS X ...

This basically reverts commit 4a09cec.
  • Loading branch information
mgeier committed Sep 16, 2014
1 parent 432d2d7 commit 481244d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pd/ssrclient.pd_lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

local SsrClient = pd.Class:new():register("ssrclient")

-- XML parser from http://github.com/Phrogz/SLAXML
local SLAXML = require("slaxml")

function SsrClient:output_command()
-- first part of command becomes the selector, the rest atoms
self:outlet(1, self.command[1], {select(2, unpack(self.command))})
Expand Down Expand Up @@ -30,8 +33,7 @@ function SsrClient:initialize(name, atoms)
self.buffer = {}
self.command = {}

-- XML parser from http://github.com/Phrogz/SLAXML
self.parser = require("slaxml"):parser{
self.parser = SLAXML:parser{
startElement = function(name, nsURI, nsPrefix)
if name == "update" then
-- not checked
Expand Down

0 comments on commit 481244d

Please sign in to comment.