Wing 323 - Gamepad Version  V1.0
Public Member Functions
AudioReceiver Class Reference

Receivers audio events to be played to the player. The audio receiver can receive two types of audio. The first type is backing music (i.e. music to set the games mood/theme) and sound effects (i.e. gunshots, explosions etc). This allows both music and sound effects to be mixed over one another. More...

List of all members.

Public Member Functions

void Start ()
 Initialises the audio receivers attributes.
void setCurrentSoundEffect (AudioClip _soundEffect, float _volume)
 Sets the current sound effect to be played.
void setCurrentMusic (AudioClip _music, float _volume)
 Sets the current music to be played.

Detailed Description

Receivers audio events to be played to the player. The audio receiver can receive two types of audio. The first type is backing music (i.e. music to set the games mood/theme) and sound effects (i.e. gunshots, explosions etc). This allows both music and sound effects to be mixed over one another.

Author:
Alexander Poolton
Version:
3.0
Date:
15/7/2011

Member Function Documentation

void AudioReceiver::setCurrentMusic ( AudioClip  _music,
float  _volume 
) [inline]

Sets the current music to be played.

Parameters:
[in]_musicThe music to be played
[in]_volumeThe volume of the music
void AudioReceiver::setCurrentSoundEffect ( AudioClip  _soundEffect,
float  _volume 
) [inline]

Sets the current sound effect to be played.

Parameters:
[in]_soundEffectThe sound effect to be played
[in]_volumeThe volume of the sound effect

The documentation for this class was generated from the following file:
 All Classes Functions