virtual bool SetSoundData(SoundDataBase* pSound);
SetSoundData sets the sound object to retain its data. SetSoundData does not need to be implemented in versions of SoundInfoBase which do not support initialization with a SoundData. If supported, the class can be AddRef'ed to the SoundData to keep its data. The default '.gfx' file loading procedure will use this method to initialize sound contents after the base file has been loaded.
Parameters |
Description |
SoundDataBase* pSound |
SoundDataBase object which contains the sound content. |
A Boolean value of true if the sound data is initialized and retained, otherwise false.