mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-03 11:51:05 +00:00
added extra overload to have gen/delete functions with similar parameters. Corrected some inline docu
This commit is contained in:
parent
17d7e4da92
commit
2e48fcb4b4
|
@ -423,7 +423,6 @@ namespace OpenTK.OpenAL
|
|||
}
|
||||
|
||||
/// <summary>This function generates one or more sources. References to sources are int values, which are used wherever a source reference is needed (in calls such as AL.DeleteSources and AL.Source with parameter ALSourcei).</summary>
|
||||
/// <param name="n">The number of sources to be generated.</param>
|
||||
/// <param name="sources">Pointer to an array of int values which will store the names of the new sources.</param>
|
||||
[CLSCompliant( true )]
|
||||
public static void GenSources( int[] sources )
|
||||
|
@ -436,6 +435,23 @@ namespace OpenTK.OpenAL
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>This function generates one or more sources. References to sources are int values, which are used wherever a source reference is needed (in calls such as AL.DeleteSources and AL.Source with parameter ALSourcei).</summary>
|
||||
/// <param name="n">The number of sources to be generated.</param>
|
||||
/// <returns>Pointer to an array of int values which will store the names of the new sources.</returns>
|
||||
[CLSCompliant( true )]
|
||||
public static int[] GenSources( int n )
|
||||
{
|
||||
uint[] temp = new uint[n];
|
||||
GenSources( temp.Length, out temp[0] );
|
||||
int[] sources = new int[n];
|
||||
for ( int i = 0 ; i < temp.Length ; i++ )
|
||||
{
|
||||
sources[i] = (int) temp[i];
|
||||
}
|
||||
return sources;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>This function generates one source only. References to sources are uint values, which are used wherever a source reference is needed (in calls such as AL.DeleteSources and AL.Source with parameter ALSourcei).</summary>
|
||||
/// <param name="source">Pointer to an uint value which will store the name of the new source.</param>
|
||||
[CLSCompliant( false )]
|
||||
|
@ -455,7 +471,7 @@ namespace OpenTK.OpenAL
|
|||
}
|
||||
|
||||
/// <summary>This function generates one source only. References to sources are int values, which are used wherever a source reference is needed (in calls such as AL.DeleteSources and AL.Source with parameter ALSourcei).</summary>
|
||||
/// <param name="source">Pointer to an int value which will store the name of the new source.</param>
|
||||
/// <returns>Pointer to an int value which will store the name of the new source.</returns>
|
||||
[CLSCompliant( true )]
|
||||
public static int GenSources( )
|
||||
{
|
||||
|
@ -502,7 +518,6 @@ namespace OpenTK.OpenAL
|
|||
}
|
||||
|
||||
/// <summary>This function deletes one or more sources.</summary>
|
||||
/// <param name="n">The number of sources to be deleted.</param>
|
||||
/// <param name="sources">Pointer to an array of source names identifying the sources to be deleted.</param>
|
||||
[CLSCompliant( true )]
|
||||
public static void DeleteSources( int[] sources )
|
||||
|
@ -1338,7 +1353,6 @@ namespace OpenTK.OpenAL
|
|||
}
|
||||
|
||||
/// <summary>This function generates one or more buffers, which contain audio data (see AL.BufferData). References to buffers are uint values, which are used wherever a buffer reference is needed (in calls such as AL.DeleteBuffers, AL.Source with parameter ALSourcei, AL.SourceQueueBuffers, and AL.SourceUnqueueBuffers).</summary>
|
||||
/// <param name="n">The number of buffers to be generated.</param>
|
||||
/// <param name="buffers">Pointer to an array of uint values which will store the names of the new buffers.</param>
|
||||
[CLSCompliant( true )]
|
||||
public static void GenBuffers( int[] buffers )
|
||||
|
@ -1351,6 +1365,22 @@ namespace OpenTK.OpenAL
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>This function generates one or more buffers, which contain audio data (see AL.BufferData). References to buffers are uint values, which are used wherever a buffer reference is needed (in calls such as AL.DeleteBuffers, AL.Source with parameter ALSourcei, AL.SourceQueueBuffers, and AL.SourceUnqueueBuffers).</summary>
|
||||
/// <param name="n">The number of buffers to be generated.</param>
|
||||
/// <returns>Pointer to an array of uint values which will store the names of the new buffers.</returns>
|
||||
[CLSCompliant( true )]
|
||||
public static int[] GenBuffers( int n )
|
||||
{
|
||||
uint[] temp = new uint[n];
|
||||
GenBuffers( temp.Length, out temp[0] );
|
||||
int[] buffers = new int[n];
|
||||
for ( int i = 0 ; i < temp.Length ; i++ )
|
||||
{
|
||||
buffers[i] = (int) temp[i];
|
||||
}
|
||||
return buffers;
|
||||
}
|
||||
|
||||
/// <summary>This function generates one buffer only, which contain audio data (see AL.BufferData). References to buffers are uint values, which are used wherever a buffer reference is needed (in calls such as AL.DeleteBuffers, AL.Source with parameter ALSourcei, AL.SourceQueueBuffers, and AL.SourceUnqueueBuffers).</summary>
|
||||
/// <param name="buffer">Pointer to an uint value which will store the name of the new buffer.</param>
|
||||
[CLSCompliant( false )]
|
||||
|
@ -1370,7 +1400,7 @@ namespace OpenTK.OpenAL
|
|||
}
|
||||
|
||||
/// <summary>This function generates one buffer only, which contain audio data (see AL.BufferData). References to buffers are uint values, which are used wherever a buffer reference is needed (in calls such as AL.DeleteBuffers, AL.Source with parameter ALSourcei, AL.SourceQueueBuffers, and AL.SourceUnqueueBuffers).</summary>
|
||||
/// <param name="buffer">Pointer to an uint value which will store the name of the new buffer.</param>
|
||||
/// <returns>Pointer to an uint value which will store the name of the new buffer.</returns>
|
||||
[CLSCompliant( true )]
|
||||
public static int GenBuffers( )
|
||||
{
|
||||
|
|
|
@ -160,7 +160,6 @@ namespace OpenTK.OpenAL
|
|||
|
||||
/// <summary>The GenEffects function is used to create one or more Effect objects. An Effect object stores an effect type and a set of parameter values to control that Effect. In order to use an Effect it must be attached to an Auxiliary Effect Slot object</summary>
|
||||
/// <remarks>After creation an Effect has no type (EfxEffectType.Null), so before it can be used to store a set of parameters, the application must specify what type of effect should be stored in the object, using Effect() with EfxEffecti.</remarks>
|
||||
/// <param name="n">Number of Effects to be created.</param>
|
||||
/// <param name="effects">Pointer addressing sufficient memory to store n Effect object identifiers.</param>
|
||||
[CLSCompliant( true )]
|
||||
public void GenEffects( int[] effects )
|
||||
|
@ -173,6 +172,23 @@ namespace OpenTK.OpenAL
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>The GenEffects function is used to create one or more Effect objects. An Effect object stores an effect type and a set of parameter values to control that Effect. In order to use an Effect it must be attached to an Auxiliary Effect Slot object</summary>
|
||||
/// <remarks>After creation an Effect has no type (EfxEffectType.Null), so before it can be used to store a set of parameters, the application must specify what type of effect should be stored in the object, using Effect() with EfxEffecti.</remarks>
|
||||
/// <param name="n">Number of Effects to be created.</param>
|
||||
/// <returns>Pointer addressing sufficient memory to store n Effect object identifiers.</returns>
|
||||
[CLSCompliant( true )]
|
||||
public int[] GenEffects( int n )
|
||||
{
|
||||
uint[] temp = new uint[n];
|
||||
GenEffects( temp.Length, out temp[0] );
|
||||
int[] effects = new int[n];
|
||||
for ( int i = 0 ; i < temp.Length ; i++ )
|
||||
{
|
||||
effects[i] = (int) temp[i];
|
||||
}
|
||||
return effects;
|
||||
}
|
||||
|
||||
/// <summary>This function generates only one Effect.</summary>
|
||||
/// <param name="effect">Storage UInt32 for the new effect name/handle.</param>
|
||||
[CLSCompliant( false )]
|
||||
|
@ -198,7 +214,7 @@ namespace OpenTK.OpenAL
|
|||
}
|
||||
|
||||
/// <summary>This function generates only one Effect.</summary>
|
||||
/// <param name="effect">Storage UInt32 for the new effect name/handle.</param>
|
||||
/// <returns>Storage UInt32 for the new effect name/handle.</returns>
|
||||
[CLSCompliant( true )]
|
||||
public int GenEffects( )
|
||||
{
|
||||
|
@ -248,7 +264,6 @@ namespace OpenTK.OpenAL
|
|||
}
|
||||
|
||||
/// <summary>The DeleteEffects function is used to delete and free resources for Effect objects previously created with GenEffects.</summary>
|
||||
/// <param name="n">Number of Effects to be deleted.</param>
|
||||
/// <param name="effects">Pointer to n Effect object identifiers.</param>
|
||||
[CLSCompliant( true )]
|
||||
public void DeleteEffects( int[] effects )
|
||||
|
@ -589,7 +604,6 @@ namespace OpenTK.OpenAL
|
|||
|
||||
/// <summary>The GenFilters function is used to create one or more Filter objects. A Filter object stores a filter type and a set of parameter values to control that Filter. Filter objects can be attached to Sources as Direct Filters or Auxiliary Send Filters.</summary>
|
||||
/// <remarks>After creation a Filter has no type (EfxFilterType.Null), so before it can be used to store a set of parameters, the application must specify what type of filter should be stored in the object, using Filter() with EfxFilteri.</remarks>
|
||||
/// <param name="n">Number of Filters to be created.</param>
|
||||
/// <param name="filters">Pointer addressing sufficient memory to store n Filter object identifiers.</param>
|
||||
[CLSCompliant( true )]
|
||||
public void GenFilters( int[] filters )
|
||||
|
@ -602,6 +616,23 @@ namespace OpenTK.OpenAL
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>The GenFilters function is used to create one or more Filter objects. A Filter object stores a filter type and a set of parameter values to control that Filter. Filter objects can be attached to Sources as Direct Filters or Auxiliary Send Filters.</summary>
|
||||
/// <remarks>After creation a Filter has no type (EfxFilterType.Null), so before it can be used to store a set of parameters, the application must specify what type of filter should be stored in the object, using Filter() with EfxFilteri.</remarks>
|
||||
/// <param name="n">Number of Filters to be created.</param>
|
||||
/// <returns>Pointer addressing sufficient memory to store n Filter object identifiers.</returns>
|
||||
[CLSCompliant( true )]
|
||||
public int[] GenFilters( int n )
|
||||
{
|
||||
uint[] temp = new uint[n];
|
||||
GenFilters( temp.Length, out temp[0] );
|
||||
int[] filters = new int[n];
|
||||
for ( int i = 0 ; i < temp.Length ; i++ )
|
||||
{
|
||||
filters[i] = (int) temp[i];
|
||||
}
|
||||
return filters;
|
||||
}
|
||||
|
||||
/// <summary>This function generates only one Filter.</summary>
|
||||
/// <param name="filter">Storage UInt32 for the new filter name/handle.</param>
|
||||
[CLSCompliant( false )]
|
||||
|
@ -627,7 +658,7 @@ namespace OpenTK.OpenAL
|
|||
}
|
||||
|
||||
/// <summary>This function generates only one Filter.</summary>
|
||||
/// <param name="filter">Storage UInt32 for the new filter name/handle.</param>
|
||||
/// <returns>Storage UInt32 for the new filter name/handle.</returns>
|
||||
[CLSCompliant( true )]
|
||||
public int GenFilters( )
|
||||
{
|
||||
|
@ -677,7 +708,6 @@ namespace OpenTK.OpenAL
|
|||
}
|
||||
|
||||
/// <summary>The DeleteFilters function is used to delete and free resources for Filter objects previously created with GenFilters.</summary>
|
||||
/// <param name="n">Number of Filters to be deleted.</param>
|
||||
/// <param name="filters">Pointer to n Filter object identifiers.</param>
|
||||
[CLSCompliant( true )]
|
||||
public void DeleteFilters( int[] filters )
|
||||
|
@ -943,7 +973,6 @@ namespace OpenTK.OpenAL
|
|||
|
||||
/// <summary>The GenAuxiliaryEffectSlots function is used to create one or more Auxiliary Effect Slots. The number of slots that can be created will be dependant upon the Open AL device used.</summary>
|
||||
/// <remarks>An application should check the OpenAL error state after making this call to determine if the Effect Slot was successfully created. If the function call fails then none of the requested Effect Slots are created. A good strategy for creating any OpenAL object is to use a for-loop and generate one object each loop iteration and then check for an error condition. If an error is set then the loop can be broken and the application can determine if sufficient resources are available.</remarks>
|
||||
/// <param name="n">Number of Auxiliary Effect Slots to be created.</param>
|
||||
/// <param name="slots">Pointer addressing sufficient memory to store n Effect Slot object identifiers.</param>
|
||||
[CLSCompliant( true )]
|
||||
public void GenAuxiliaryEffectSlots( int[] slots )
|
||||
|
@ -956,6 +985,23 @@ namespace OpenTK.OpenAL
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>The GenAuxiliaryEffectSlots function is used to create one or more Auxiliary Effect Slots. The number of slots that can be created will be dependant upon the Open AL device used.</summary>
|
||||
/// <remarks>An application should check the OpenAL error state after making this call to determine if the Effect Slot was successfully created. If the function call fails then none of the requested Effect Slots are created. A good strategy for creating any OpenAL object is to use a for-loop and generate one object each loop iteration and then check for an error condition. If an error is set then the loop can be broken and the application can determine if sufficient resources are available.</remarks>
|
||||
/// <param name="n">Number of Auxiliary Effect Slots to be created.</param>
|
||||
/// <returns>Pointer addressing sufficient memory to store n Effect Slot object identifiers.</returns>
|
||||
[CLSCompliant( true )]
|
||||
public int[] GenAuxiliaryEffectSlots( int n )
|
||||
{
|
||||
uint[] temp = new uint[n];
|
||||
GenAuxiliaryEffectSlots( temp.Length, out temp[0] );
|
||||
int[] slots = new int[n];
|
||||
for ( int i = 0 ; i < temp.Length ; i++ )
|
||||
{
|
||||
slots[i] = (int) temp[i];
|
||||
}
|
||||
return slots;
|
||||
}
|
||||
|
||||
/// <summary>This function generates only one Auxiliary Effect Slot.</summary>
|
||||
/// <param name="slot">Storage UInt32 for the new auxiliary effect slot name/handle.</param>
|
||||
[CLSCompliant( false )]
|
||||
|
@ -970,7 +1016,6 @@ namespace OpenTK.OpenAL
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>This function generates only one Auxiliary Effect Slot.</summary>
|
||||
/// <param name="slot">Storage UInt32 for the new auxiliary effect slot name/handle.</param>
|
||||
[CLSCompliant( true )]
|
||||
|
@ -982,7 +1027,7 @@ namespace OpenTK.OpenAL
|
|||
}
|
||||
|
||||
/// <summary>This function generates only one Auxiliary Effect Slot.</summary>
|
||||
/// <param name="slot">Storage UInt32 for the new auxiliary effect slot name/handle.</param>
|
||||
/// <returns>Storage UInt32 for the new auxiliary effect slot name/handle.</returns>
|
||||
[CLSCompliant( true )]
|
||||
public int GenAuxiliaryEffectSlots( )
|
||||
{
|
||||
|
@ -1258,7 +1303,12 @@ namespace OpenTK.OpenAL
|
|||
|
||||
/// <summary>Returns True if the EFX Extension has been found and could be initialized.</summary>
|
||||
public bool IsInitialized
|
||||
{ get { return _valid; } }
|
||||
{
|
||||
get
|
||||
{
|
||||
return _valid;
|
||||
}
|
||||
}
|
||||
|
||||
public EfxExtension( )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue