Platform SDK: DirectX

PlayStreaming Sample

[Visual Basic]

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

[C++]

Description

This sample shows how to play a wave file using a streaming DirectSoundBuffer.

Path

Source: (SDK root)\Samples\Multimedia\DSound\Src\PlayStreaming

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

User's Guide

Click the Sound File button to load a wave file, and click Play to play the sound. Select Loop in order to play the sound repeatedly.

Programming Notes

Compare the PlaySound Sample, which uses static buffers.