Class: Scruby::Audio::UDPSender

Inherits:
OSC::UDPServer
  • Object
show all
Includes:
Singleton
Defined in:
lib/scruby/audio/server.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#send(command, host, port, *args) ⇒ Object



9
10
11
# File 'lib/scruby/audio/server.rb', line 9

def send( command, host, port, *args )
  udp_send( OSC::Message.new( command, type_tag(args), *args ), 0, host, port )
end

#send_message(message, host, port) ⇒ Object



13
14
15
# File 'lib/scruby/audio/server.rb', line 13

def send_message( message, host, port )
  udp_send( message, 0, host, port )
end

#type_tag(*args) ⇒ Object



17
18
19
20
# File 'lib/scruby/audio/server.rb', line 17

def type_tag(*args)
  args = *args
  args.collect{ |msg| OSC::Packet.tag( msg ) }.to_s
end

#udp_sendObject



8
# File 'lib/scruby/audio/server.rb', line 8

alias :udp_send :send