Update OpenAL-CS.
Required for Win64 support.
This commit is contained in:
@@ -136,7 +136,7 @@ namespace OpenRA.Platforms.Default
|
||||
for (var i = 0; i < PoolSize; i++)
|
||||
{
|
||||
var source = 0U;
|
||||
AL10.alGenSources(new IntPtr(1), out source);
|
||||
AL10.alGenSources(1, out source);
|
||||
if (AL10.alGetError() != AL10.AL_NO_ERROR)
|
||||
{
|
||||
Log.Write("sound", "Failed generating OpenAL source {0}", i);
|
||||
@@ -392,15 +392,15 @@ namespace OpenRA.Platforms.Default
|
||||
public OpenAlSoundSource(byte[] data, int byteCount, int channels, int sampleBits, int sampleRate)
|
||||
{
|
||||
SampleRate = sampleRate;
|
||||
AL10.alGenBuffers(new IntPtr(1), out buffer);
|
||||
AL10.alBufferData(buffer, OpenAlSoundEngine.MakeALFormat(channels, sampleBits), data, new IntPtr(byteCount), new IntPtr(sampleRate));
|
||||
AL10.alGenBuffers(1, out buffer);
|
||||
AL10.alBufferData(buffer, OpenAlSoundEngine.MakeALFormat(channels, sampleBits), data, byteCount, sampleRate);
|
||||
}
|
||||
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
if (!disposed)
|
||||
{
|
||||
AL10.alDeleteBuffers(new IntPtr(1), ref buffer);
|
||||
AL10.alDeleteBuffers(1, ref buffer);
|
||||
disposed = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user