<li><ahref="../../../../Microsoft/Xna/Framework/Audio/SoundEffect.html"title="class in Microsoft.Xna.Framework.Audio"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../Microsoft/Xna/Framework/Audio/SoundState.html"title="enum in Microsoft.Xna.Framework.Audio"><spanclass="strong">Next Class</span></a></li>
<dd><ahref="../../../../System/IDisposable.html"title="interface in System">IDisposable</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><ahref="../../../../Microsoft/Xna/Framework/Audio/DynamicSoundEffectInstance.html"title="class in Microsoft.Xna.Framework.Audio">DynamicSoundEffectInstance</a></dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="strong">SoundEffectInstance</span>
extends java.lang.Object
implements <ahref="../../../../System/IDisposable.html"title="interface in System">IDisposable</a></pre>
<divclass="block">Provides a single playing, paused, or stopped instance of a SoundEffect sound.</div>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Audio/SoundEffectInstance.html#Apply3D(Microsoft.Xna.Framework.Audio.AudioListener[], Microsoft.Xna.Framework.Audio.AudioEmitter)">Apply3D</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Audio/AudioListener.html"title="class in Microsoft.Xna.Framework.Audio">AudioListener</a>[] listeners,
<ahref="../../../../Microsoft/Xna/Framework/Audio/AudioEmitter.html"title="class in Microsoft.Xna.Framework.Audio">AudioEmitter</a> emitter)</code>
<divclass="block">Applies 3D position to the sound using multiple listeners.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../Microsoft/Xna/Framework/Audio/SoundEffectInstance.html#Apply3D(Microsoft.Xna.Framework.Audio.AudioListener, Microsoft.Xna.Framework.Audio.AudioEmitter)">Apply3D</a></strong>(<ahref="../../../../Microsoft/Xna/Framework/Audio/AudioListener.html"title="class in Microsoft.Xna.Framework.Audio">AudioListener</a> listener,
<ahref="../../../../Microsoft/Xna/Framework/Audio/AudioEmitter.html"title="class in Microsoft.Xna.Framework.Audio">AudioEmitter</a> emitter)</code>
<divclass="block">Applies 3D positioning to the sound using a single listener.</div>
<divclass="block">Releases unmanaged resources and performs other cleanup operations before the SoundEffectInstance is reclaimed by garbage collection.</div>
<divclass="block">Gets the pitch adjustment for the SoundEffectInstance.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code><ahref="../../../../Microsoft/Xna/Framework/Audio/SoundState.html"title="enum in Microsoft.Xna.Framework.Audio">SoundState</a></code></td>
<divclass="block">Gets a value that indicates whether looping is enabled for the SoundEffectInstance. Reference page contains links to related code samples.</div>
<divclass="block">Sets the pitch adjustment for the SoundEffectInstance. Reference page contains links to related code samples.</div>
</li>
</ul>
<aname="getState()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getState</h4>
<pre>public <ahref="../../../../Microsoft/Xna/Framework/Audio/SoundState.html"title="enum in Microsoft.Xna.Framework.Audio">SoundState</a> getState()</pre>
<divclass="block">Gets the current state (playing, paused, or stopped) of the SoundEffectInstance.</div>
</li>
</ul>
<aname="getVolume()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getVolume</h4>
<pre>public float getVolume()</pre>
<divclass="block">Gets the volume of the SoundEffectInstance. Reference page contains links to related code samples.</div>
<pre>public void Apply3D(<ahref="../../../../Microsoft/Xna/Framework/Audio/AudioListener.html"title="class in Microsoft.Xna.Framework.Audio">AudioListener</a> listener,
<ahref="../../../../Microsoft/Xna/Framework/Audio/AudioEmitter.html"title="class in Microsoft.Xna.Framework.Audio">AudioEmitter</a> emitter)</pre>
<divclass="block">Applies 3D positioning to the sound using a single listener. Reference page contains links to related code samples.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>listener</code> - Position of the listener.</dd><dd><code>emitter</code> - Position of the emitter.</dd></dl>
<pre>public void Apply3D(<ahref="../../../../Microsoft/Xna/Framework/Audio/AudioListener.html"title="class in Microsoft.Xna.Framework.Audio">AudioListener</a>[] listeners,
<ahref="../../../../Microsoft/Xna/Framework/Audio/AudioEmitter.html"title="class in Microsoft.Xna.Framework.Audio">AudioEmitter</a> emitter)</pre>
<divclass="block">Applies 3D position to the sound using multiple listeners. Reference page contains links to related code samples.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>listeners</code> - Positions of each listener.</dd><dd><code>emitter</code> - Position of the emitter.</dd></dl>
</li>
</ul>
<aname="Dispose()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>Dispose</h4>
<pre>public void Dispose()</pre>
<divclass="block">Releases unmanaged resources held by this SoundEffectInstance.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><ahref="../../../../System/IDisposable.html#Dispose()">Dispose</a></code> in interface <code><ahref="../../../../System/IDisposable.html"title="interface in System">IDisposable</a></code></dd>
<divclass="block">Releases the unmanaged resources held by this SoundEffectInstance, and optionally releases the managed resources.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>disposing</code> - Pass true to release both the managed and unmanaged resources for this SoundEffectInstance. Passing false releases only the unmanaged resources.</dd></dl>
</li>
</ul>
<aname="finalize()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>finalize</h4>
<pre>protected void finalize()</pre>
<divclass="block">Releases unmanaged resources and performs other cleanup operations before the SoundEffectInstance is reclaimed by garbage collection.</div>
<divclass="block">Stops playing a SoundEffectInstance, either immediately or as authored.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>immediate</code> - Whether to stop playing immediately, or to break out of the loop region and play the release. Specify true to stop playing immediately, or false to break out of the loop region and play the release phase (the remainder of the sound).</dd></dl>
<li><ahref="../../../../Microsoft/Xna/Framework/Audio/SoundEffect.html"title="class in Microsoft.Xna.Framework.Audio"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../Microsoft/Xna/Framework/Audio/SoundState.html"title="enum in Microsoft.Xna.Framework.Audio"><spanclass="strong">Next Class</span></a></li>