SoundPlayer Constructor (Stream)

 

Initializes a new instance of the SoundPlayer class, and attaches the .wav file within the specified Stream.

Namespace:   System.Media
Assembly:  System (in System.dll)

public SoundPlayer(
	Stream stream
)

Parameters

stream
Type: System.IO.Stream

A Stream to a .wav file.

The Stream passed to the stream parameter should be a Stream containing a .wav file. The data returned by the Read method of the Stream should be the data within a .wav file.

.NET Framework
Available since 2.0
Return to top
Show: