Sound event interface

Scaleform adds an event-based, Flash sound interface for FMOD and Wwise®/SoundFrame (Sound::SoundEvent::PostEvent and Sound::SoundEvent::SetParam). This new interface allows sound playback to be easily triggered from within ActionScript and played back using the Scaleform Flash player or a game engine sound system.

Four implementations are included in Scaleform distribution:

  1. Sound::SoundEventFMOD - based on FMOD Low Level API.
  2. Sound::SoundEventWwise - based on Wwise API.
  3. Sound::SoundEventWwiseSF - supports the Wwise SoundFrame tool protocol.

Example:

#include "Sound/Sound_SoundEventWwise.h"
Ptr<SoundEvent> soundEvent = *new SoundEventWwiseSF;

soundEvent->PostEvent("Sound_PostEvent", "Play_Hello");
soundEvent->SetParam("Sound_SetParam", "Enable_Effect", 85);

Please refer to the source code of Scaleform Player, to the implementation of sound event interfaces and to Flash sound example for details.