Memory Management

Your application can use the IDirectSoundBuffer::Restore method to restore the sound buffer memory for a specified DirectSoundBuffer object. Although this is useful if the buffer has been lost, the IDirectSoundBuffer::Restore method restores only the memory itself. It cannot restore the content of the memory. Once the buffer memory is restored, it must be rewritten with valid sound data.