次の方法で共有


SoundEffect.CreateInstance Method

Creates a new SoundEffectInstance for this SoundEffect.

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

Syntax

public SoundEffectInstance CreateInstance ()

Return Value

A new SoundEffectInstance for this SoundEffect.

Remarks

Creating a SoundEffectInstance before calling Play allows you to access advanced playback features, such as 3D positioning.

See Also

Tasks

Looping a Sound
Adjusting Pitch and Volume
Applying a 3D Positional Effect to a Sound

Reference

SoundEffect Class
SoundEffect Members
Microsoft.Xna.Framework.Audio Namespace

Platforms

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