Component Prototype

Description

Audio Component

This component is a wav file loader. The component is used to reproduce an audio source in an augmented reality scene. The component is based on the OpenAL audio gem.

In-slots

Name

Type

Description

visible

boolean

Represents that the audio source is visible.

play

boolean

Plays the audio source.

stop

boolean

Stops the audio source.

Out-slots

Name

Type

Description

playing

boolean

True when the audio source is playing

paused

boolean

True when the audio source is paused

stopped

boolean

True when the audio source is stopped

end

boolean

True when the audio source ends

Properties

Name

Type

Description

iconFileName*

string

The filename of the icon shown for the component in the authoring environment.

pitch

float

Value that fixes the pitch of the audio source. It must be possitive

gain

float

Value that fixes the gain of the audio source. It must be possitive

position

floatVector

A vector of floats, which determines the xyz position of the listener

velocity

floatVector

A vector of floats, which determines the velocity of the listener

orientation

floatVector

A vector of floats, which determines the orientation expressed as "at" and "up" vectors of the listener

looping

boolean

Turns looping of the audio source on and off

audioFileName

string

The name of the file containing the audio signal.

Figure 1 Audio Component Status Diagram