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:
the_fiddler 2009-05-06 09:09:00 +00:00
parent 222bded7ff
commit 65205d8cd5

View file

@ -278,7 +278,7 @@ namespace OpenTK.Audio
attributes.Add(refresh);
}
attributes.Add((int)AlcContextAttributes.Frequency);
attributes.Add((int)AlcContextAttributes.Sync);
attributes.Add(sync ? 1 : 0);
if (enableEfx && Alc.IsExtensionPresent(device_handle, "ALC_EXT_EFX"))