[Audio] Don't crash when Alc.GetString() returns null
authorthefiddler <stapostol@gmail.com>
Sun, 12 Jan 2014 21:05:15 +0000 (22:05 +0100)
committerthefiddler <stapostol@gmail.com>
Sun, 12 Jan 2014 21:05:15 +0000 (22:05 +0100)
commit7afe48c9798aa3e5eb5124ba0a978fdd81985d79
treebf0b0e525b9ead6475ebcca661fcdf0937d103f8
parent19eb72b3a9afe06536f346a822aac4e57841e5d4
[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.
Source/OpenTK/Audio/OpenAL/Alc/Alc.cs