SoundEffect.Play Method (Single)
Creates a new SoundEffectInstance and plays it at the specified volume.
Namespace: Microsoft.Xna.Framework.Audio
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public SoundEffectInstance Play (
float volume
)
Parameters
- volume
Volume, ranging from 0.0f (silence) to 1.0f (full volume). 1.0f is full volume relative to SoundEffect.MasterVolume.
Return Value
A new, playing, SoundEffectInstance.
See Also
Reference
SoundEffect Class
SoundEffect Members
Microsoft.Xna.Framework.Audio Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista, Zune