Platform SDK: DirectX |
This topic pertains only to application development in Visual Basic. See DirectSound C/C++ Samples.
The StreamTo application demonstrates how to stream sound to a capture buffer.
Source: (SDK root)\Samples\Multimedia\VBSamples\DSound\Src\StreamTo
Executable: (SDK root)\Samples\Multimedia\VBSamples\DSound\Bin\Streamto.exe
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.
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.