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
Name | Description | Type | Default |
---|---|---|---|
class | The class name for the module; must be "SoundOutput". | string | |
name | The name of this instance of the module. | string | |
command | the command to use to play sounds, The dafult is the OS X command afplay | string | afplay |
sounds | comma separated list of sound file names (including path). | string |
Module Connections
Inputs
Name | Description |
---|---|
INPUT | vector 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