Microsoft DirectX 8.1 (Visual Basic)

Reading Wave Data from a Resource

Because sounds stored as resources are likely to be short, it is recommended that they be played through static buffers. 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 streaming buffers. For more information, see the following topics: