InstancePlayLimitException Class

The exception that is thrown when there is an attempt to play more than the platform specific maximum SoundEffectInstance sounds concurrently.

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

Syntax

[SerializableAttribute]
public sealed class InstancePlayLimitException : ExternalException

Remarks

Each platform has limits on the number of sounds playing simultaneously. InstancePlayLimitException is thrown if this limit is exceeded. Paused or stopped SoundEffectInstance objects do not count against this limit. The following table shows the maximum number of simultaneous playing sounds based on platform:

Platform Number of sounds that can play simultaneously
Windows Phone 64
Xbox 360 300
Windows No Limit

See Also

Concepts

Sounds Overview

Reference

InstancePlayLimitException Members
Microsoft.Xna.Framework.Audio Namespace

Platforms

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