Platform SDK: DirectX

StreamFrom Sample

[C++]

This topic pertains only to application development in Visual Basic. See DirectSound C/C++ Samples.

[Visual Basic]

Description

The StreamFrom application demonstrates how to stream sound from a wave file, using a streaming buffer and event notifications.

Path

Source: (SDK root)\Samples\Multimedia\VBSamples\DSound\Src\StreamFrom

Executable: (SDK root)\Samples\Multimedia\VBSamples\DSound\Bin\Streamfrom.exe

User's Guide

Click Load File and open a fairly large wave file.

Programming Notes

The sample creates a primary buffer object and plays it even when a file is not being played. See Playing the Primary Buffer Continuously.