Commit graph

60 commits

Author SHA1 Message Date
thefiddler 7afe48c979 [Audio] Don't crash when Alc.GetString() returns null
Alc.GetString() could crash if the unmanaged code returned null due to
any kind of failure. This is now fixed and better documented.

Additionally, the array overload for Alc.GetString() will now correctly
forward the ‘device’ parameter to unmanaged code.
2014-01-12 22:05:15 +01:00
Stefanos A aeb7a72d79 Eliminated CLS-compliance warnings in the bindings 2013-12-15 22:01:45 +01:00
the_fiddler 286f6f9439 Marked int* overloads as non CLS-compliant. 2010-10-28 09:00:23 +00:00
the_fiddler 7c78cc4205 Fixed ref overloads of GenSources and GenBuffers to follow the rest of the OpenTK design. Fixes invalid return values on x64 systems. 2010-10-28 08:12:24 +00:00
the_fiddler 53b84d18d4 Backported bugfixes from 1.0 branch. 2010-02-03 19:04:42 +00:00
the_fiddler 9eb504eb4e Fixed a large number of recurring spelling mistakes in documentation (patch by iRBiS). Fixes issue [#1341]: "Vector4 constructor describes w component as z component + other spelling corrections". 2009-11-09 08:15:38 +00:00
the_fiddler fa81d3daa8 Cleaned up a large number of documentation issues. 2009-11-04 20:48:02 +00:00
the_fiddler 854f92c868 Fixed x86-specific ABI assumption (do not pass structure directly when a pointer is expected). Patch by jonp. 2009-10-23 22:06:15 +00:00
the_fiddler ef48c42807 Debug.WriteLine(object, string) does not work as intended (the first parameter defines the category). Use Debug.Print instead. 2009-10-23 17:45:14 +00:00
the_fiddler 887766a371 Fixed x86-specific ABI assumption (do not return structure directly when a pointer is expected). Patch by jonp. 2009-10-23 16:10:55 +00:00
the_fiddler 9b4e8d18f9 * AL/AL.cs:
* Alc/AlcEnums.cs: Fixed documentation warnings.
2009-10-07 11:20:44 +00:00
the_fiddler 7a09bff35d Fixed XML documentation warnings.
Removed unnecessary [CLSCompliant(true)] attributes.
2009-09-04 23:12:10 +00:00
the_fiddler 98882acdbf Fixed XML documentation warnings. 2009-09-04 22:16:12 +00:00
the_fiddler 685b646efa Fixed a large number of documentation warnings. 2009-09-04 21:44:39 +00:00
the_fiddler 6b03992812 Added missing XML documentation and fixed invalid XML doc references.
Removed deprecated methods from IGraphicsContext.
2009-09-04 21:25:29 +00:00
the_fiddler 672daa42c7 OpenAL DllImport library should be internal, not public. 2009-09-04 13:02:44 +00:00
the_fiddler da9497928e Moved Alut to OpenTK.Compatibility.
Moved SoundData and SoundFormat to OpenTK.Compatibility.
Moved AL and Alc classes to OpenTK.Audio.OpenAL and added the previous namespace to OpenTK.Compatibility.
Removed SoundData wrappers from AL class.
Updated samples to use the new API.
2009-08-17 10:32:20 +00:00
the_fiddler 3cc127ebbc Improved BlittableValueType API (Check, StrideOf methods).
Added AL.BufferData<T> method.
2009-07-19 20:56:17 +00:00
the_fiddler 550520a994 Added CLSCompliant overload to Alc.CaptureOpenDevice. 2009-07-17 22:58:29 +00:00
the_fiddler cbe3bc6bbb Fixed wrappers for Alc.GetInteger (pin and pass pointer). 2009-07-17 21:21:03 +00:00
Chrisbrandtner 75cc8cba9f Merged openal-next branch (rev. 1969) to trunk. Tested with Audio-Info and Parrot examples and works as expected. 2009-07-16 12:49:24 +00:00
the_fiddler 1bdc6b6634 Added missing XML docs. 2009-06-28 10:49:10 +00:00
the_fiddler 51d39fffe1 Added missing XML comment to AL class.
Made AL.Lib internal.
2009-06-28 10:38:56 +00:00
the_fiddler a7363b54e6 Removed OpenTK.Math namespace. Math functions now go directly into the OpenTK namespace. 2009-06-25 11:42:05 +00:00
the_fiddler ead6be817d Marked Glu and Alut as obsolete. 2009-06-15 12:43:53 +00:00
the_fiddler 402230b61c Fixed a large amount of documentation warnings.
Marked several APIs as obsolete.
2009-06-04 11:22:20 +00:00
the_fiddler 918b7b49ce Fixed missing documentation warnings. 2009-06-04 10:56:07 +00:00
the_fiddler 59d6fca421 Last parameter of Alc.CaptureSamples should be an int, not IntPtr. 2009-05-31 11:10:16 +00:00
the_fiddler 421fd60105 Fixed Alc.CaptureSamples according to http://www.opentk.com/node/911. Added convenience overloads. 2009-05-31 11:08:34 +00:00
the_fiddler 9265747541 Fixed all known build warnings, apart from missing xml comments. 2009-03-25 21:53:12 +00:00
the_fiddler 7ab2816eee * Audio/*: Cleaned up whitespace.
* AudioContext.cs: Get device name specifier once a device is opened.
2009-03-25 18:41:50 +00:00
the_fiddler a22019d890 Normalize line endings and set the mime-type=text/plain and eol-style=native properties on all files. 2009-02-22 10:43:35 +00:00
the_fiddler 820e2af20e Made ContextHandle a struct to reduce GC pressure (ContextHandles are created per frame).
Added xml documentation for the ContextHandle.
Made the casts between ContextHandles and IntPtrs explicit.
Updated all ContextHandle consumers to reflect the explicit cast.
2008-11-23 20:17:50 +00:00
the_fiddler 62ae3698ad Library should not use Trace output. 2008-11-23 09:34:33 +00:00
chrisbrandtner 34468b868d Added overloads:
GenSource( out uint )
GenBuffer( out uint )
DeleteSource and DeleteBuffer changed to use 'ref' keyword to be consistent with Gen functions.
GenEffect( out uint )
DeleteEffect( ref uint )
GenFilter( out uint )
DeleteFilter( ref uint )
GenAuxiliaryEffectSlot( out uint );
DeleteAuxiliaryEffectSlot( ref uint ) (changed from previously passing by value, and removed the 's' in name )
renamed "DeleteAuxiliaryEffectSlots( int slot )" to "DeleteAuxiliaryEffectSlot( int slot )"
renamed "int GenAuxiliaryEffectSlots()" to "int GenAuxiliaryEffectSlot()"
New:
ALSourceType GetSourceType( uint sid )
ALSourceState GetSourceState( uint sid )
ALDistanceModel GetDistanceModel( )
2008-06-12 19:44:46 +00:00
the_fiddler 303ac6ac1b Normalized formatting with the rest of OpenTK. 2008-04-13 19:55:25 +00:00
the_fiddler 143d217468 Made AudioContext.Device private. Added AudioContext.SupportsExtension. 2008-04-13 19:42:37 +00:00
the_fiddler 2af7e2248d 2008-04-06 15:35:34 +00:00
the_fiddler f5c7a6ff5e Renamed XRam to XRamExtension. 2008-04-06 15:35:12 +00:00
the_fiddler fbe7860c9f Renamed Efx to EffectsExtension. 2008-04-06 15:34:48 +00:00
the_fiddler 54bcf92e5e Renamed EfxExtension to EffectsExtension. 2008-04-06 15:31:32 +00:00
the_fiddler b0cbe16585 Removed CLSCompliant(true) attribute. 2008-04-06 15:30:59 +00:00
the_fiddler 8dc4afadbc Renamed DeleteFilters(int n) to DeleteFilter(int n). 2008-04-06 15:17:27 +00:00
the_fiddler 1bb52f85ba Fixed Gen/DeleteFilters bindings. 2008-04-06 15:16:57 +00:00
the_fiddler d593361550 Fixed EfxExtension.AuxiliaryEffectSlot bindings. 2008-04-06 15:11:16 +00:00
the_fiddler 0e7e9680f7 Fixed EfxExtension.DeleteEffects bindings. 2008-04-06 15:07:53 +00:00
the_fiddler 36929a9355 Fixed EfxExtension.GenEffects bindings 2008-04-06 15:03:52 +00:00
the_fiddler fa64a2dc32 Removed unnecessary [CLSCompliant(true)] attributes. 2008-04-06 14:54:01 +00:00
the_fiddler 946691d853 Fixed DeleteAuxiliaryEffectSlots bindings. 2008-04-06 14:52:22 +00:00
the_fiddler 034aa68f06 Cosmetic fixes. 2008-04-06 14:49:03 +00:00