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 contents of the memory. After the buffer memory is restored, the application must write valid sound data to it.