Platform SDK: DirectX

StreamTo Sample

[C++]

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

[Visual Basic]

Description

The StreamTo application demonstrates how to stream sound to a capture buffer.

Path

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

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

User's Guide

Click Start Streaming to begin capturing sounds to a buffer. When you click End Streaming, you have the opportunity to enter a file name and save the sound to a file.

Programming Notes

The capture buffer holds 2 seconds of sound. Event notification is used to trigger writing of data to a temporary file. When the user ends capture and supplies a file name, the raw data is saved in Resource Interchange File Format (RIFF) along with the wave format information.