Moved some items.

This commit is contained in:
the_fiddler 2008-02-02 13:11:42 +00:00
parent 03f6ddfe6f
commit 698b76f373

View file

@ -310,11 +310,66 @@ namespace OpenTK.Audio
#endregion #endregion
#region internal void MakeCurrent()
/// <summary>Makes the AudioContext current in the calling thread.</summary>
/// <exception cref="ObjectDisposedException">
/// Occurs if this function is called after the AudioContext has been disposed.
/// </exception>
/// <exception cref="AudioContextException">
/// Occurs when the AudioContext could not be made current.
/// </exception>
/// <remarks>
/// Only one AudioContext can be current in the application at any time,
/// <b>regardless of the number of threads</b>.
/// </remarks>
internal void MakeCurrent()
{
AudioContext.MakeCurrent(this);
}
#endregion
#region internal bool IsCurrent
/// <summary>
/// Gets or sets a System.Boolean indicating whether the AudioContext
/// is current.
/// </summary>
/// <remarks>
/// Only one AudioContext can be current in the application at any time,
/// <b>regardless of the number of threads</b>.
/// </remarks>
internal bool IsCurrent
{
get
{
lock (audio_context_lock)
{
if (available_contexts.Count == 0)
return false;
else
{
return AudioContext.CurrentContext == this;
}
}
}
set
{
if (value) AudioContext.MakeCurrent(this);
else AudioContext.MakeCurrent(null);
}
}
#endregion
#endregion #endregion
// TODO: Remove before release! // TODO: Remove before release!
public IntPtr Device { get { return device_handle.Handle; } } public IntPtr Device { get { return device_handle.Handle; } }
#region --- Public Members ---
#region public bool IsProcessing #region public bool IsProcessing
/// <summary> /// <summary>
@ -422,8 +477,6 @@ namespace OpenTK.Audio
#endregion #endregion
#region --- Public Members ---
#region public static string[] AvailableDevices #region public static string[] AvailableDevices
/// <summary> /// <summary>
@ -444,59 +497,6 @@ namespace OpenTK.Audio
#endregion #endregion
#region internal void MakeCurrent()
/// <summary>Makes the AudioContext current in the calling thread.</summary>
/// <exception cref="ObjectDisposedException">
/// Occurs if this function is called after the AudioContext has been disposed.
/// </exception>
/// <exception cref="AudioContextException">
/// Occurs when the AudioContext could not be made current.
/// </exception>
/// <remarks>
/// Only one AudioContext can be current in the application at any time,
/// <b>regardless of the number of threads</b>.
/// </remarks>
internal void MakeCurrent()
{
AudioContext.MakeCurrent(this);
}
#endregion
#region internal bool IsCurrent
/// <summary>
/// Gets or sets a System.Boolean indicating whether the AudioContext
/// is current.
/// </summary>
/// <remarks>
/// Only one AudioContext can be current in the application at any time,
/// <b>regardless of the number of threads</b>.
/// </remarks>
internal bool IsCurrent
{
get
{
lock (audio_context_lock)
{
if (available_contexts.Count == 0)
return false;
else
{
return AudioContext.CurrentContext == this;
}
}
}
set
{
if (value) AudioContext.MakeCurrent(this);
else AudioContext.MakeCurrent(null);
}
}
#endregion
#region --- IDisposable Members --- #region --- IDisposable Members ---
/// <summary> /// <summary>