Platform SDK: DirectX |
This topic pertains only to application development in Visual Basic. See DirectSound C/C++ Samples.
The StreamFrom application demonstrates how to stream sound from a wave file, using a streaming buffer and event notifications.
Source: (SDK root)\Samples\Multimedia\VBSamples\DSound\Src\StreamFrom
Executable: (SDK root)\Samples\Multimedia\VBSamples\DSound\Bin\Streamfrom.exe
Click Load File and open a fairly large wave file.
The sample creates a primary buffer object and plays it even when a file is not being played. See Playing the Primary Buffer Continuously.