SoundEffect.FromStream Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Creates a SoundEffect object based on the specified data stream.
Namespace: Microsoft.Xna.Framework.Audio
Assembly: Microsoft.Xna.Framework (in Microsoft.Xna.Framework.dll)
Syntax
'Declaration
Public Shared Function FromStream ( _
stream As Stream _
) As SoundEffect
public static SoundEffect FromStream(
Stream stream
)
Parameters
- stream
Type: System.IO.Stream
The data for this SoundEffect object.
Return Value
Type: Microsoft.Xna.Framework.Audio.SoundEffect
A SoundEffect object based on the specified data stream.
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.