SoundOutput

Plays one or several named sound files. Requires that a command to play sounds is available that can be started from the system() call. The dafult is the afplay command available in OS X. On Linux, this can be replaced with the "play" command. There is no way to stop a playing sound so beware of long sound files.

Example XML definition

A simple example

  <module
      class = "SoundOutput"
      name = "SoundOutput"
  />

Parameters

NameDescriptionTypeDefault
classThe class name for the module; must be "SoundOutput".string
nameThe name of this instance of the module.string
commandthe command to use to play sounds, The dafult is the OS X command afplaystringafplay
soundscomma separated list of sound file names (including path).string

Module Connections

Inputs

NameDescription
INPUTvector with sounds to play. A transition from zero to one in an element starts the corresponding sound. A sound can be triggered several times even if it is already playing.

Author

Christian Balkenius
christian.balkenius@lucs.lu.se
Lund University Cognitive Science

Files

SoundOutput.h
SoundOutput.cc
SoundOutput.ikc

blog comments powered by Disqus