SoundEngine

The default implementation of the ISoundEngine interface.  Plays sounds when requested using the fmod sound engine.  See http://www.fmod.org for full documentation of the fmod sound engine.

Derived From

ISoundEngine

Project

RulesCore

Include

SoundEngine.h

Summary
The default implementation of the ISoundEngine interface.
The SoundEngine constructor.
Plays a sound immediately.

Public

Summary
The SoundEngine constructor.
Plays a sound immediately.

Constructors

SoundEngine

SoundEngine()

The SoundEngine constructor.  The constructor initializes the fmod sound engine so that it is ready to play sounds.

Functions

PlaySound

void PlaySound(const wxString &sound) const

Plays a sound immediately.  If the given sound is not valid, or does not exist, an error log message is displayed in the main window with the appropriate information.

Parameters

soundThe full path to the sound file.  Sound files may be .wav, .mp3, or various other file formats.  See http://www.fmod.org for more information.
The interface of the sound engine.
SoundEngine()
The SoundEngine constructor.
void PlaySound(const wxString &sound) const
Plays a sound immediately.
RulesCore is the HOSS of Cities3D.