If a video file has audio data, then an instance of the GFx::Video::VideoSoundSystem interface should be set on the GFx::Video::Video object for initializing the video playback system. Scaleform provides implementations of this interface on each supported platform based on Sound::SoundRenderer interface.
Example:
SoundRenderer* pSoundRenderer = GetSoundRenderer(); if (pSoundRenderer) { // Setting a video sound system instance which is based on // SoundRenderer interface pVideo->SetSoundSystem(pSoundRenderer); }
Example:
// Setting a video sound system instance which is specific to // a particular platform pVideo->SetSoundSystem(Ptr<Video::VideoSoundSystem>(*new Video::VideoSoundSystemDX8(0)));
Please note that the SetSoundSystem() method should be called only once per an instance of GFx::Video::Video.