Reading Wave Data from a Resource
Because sounds stored as resources are likely to be short, it is recommended that they be played through . To create a static buffer and fill it with data from a resource, use the DirectSound8.CreateSoundBufferFromResource method. For an example, see Filling and Playing Static Buffers.
Longer sounds can be stored in wave files and played through . For more information, see the following topics: