VisualizationData.Samples Property

Returns a collection of floats that contain sample data.

Sample floats are in the range -1.0f to 1.0f, which approximate the wave form of the sound. The sample data equates to the volume of the sound.

Namespace: Microsoft.Xna.Framework.Media
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public ReadOnlyCollection<float> Samples { get; }

Property Value

A collection of floats that contain sample data.

See Also

Reference

VisualizationData Class
VisualizationData Members
Microsoft.Xna.Framework.Media Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone