mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-09 15:00:42 +00:00
Fixed sync attribute in AudioContext constructor (patch by erluk). Fixes bug [#830] "AudioContext: Wrong parameters passed to Alc.CreateContext" (http://www.opentk.com/node/830).
This commit is contained in:
parent
370396ab7f
commit
a27c15cf32
|
@ -278,7 +278,7 @@ namespace OpenTK.Audio
|
||||||
attributes.Add(refresh);
|
attributes.Add(refresh);
|
||||||
}
|
}
|
||||||
|
|
||||||
attributes.Add((int)AlcContextAttributes.Frequency);
|
attributes.Add((int)AlcContextAttributes.Sync);
|
||||||
attributes.Add(sync ? 1 : 0);
|
attributes.Add(sync ? 1 : 0);
|
||||||
|
|
||||||
if (enableEfx && Alc.IsExtensionPresent(device_handle, "ALC_EXT_EFX"))
|
if (enableEfx && Alc.IsExtensionPresent(device_handle, "ALC_EXT_EFX"))
|
||||||
|
|
Loading…
Reference in a new issue