alGetString behaviour different from the spec
Troy Watson <[email protected]> Sat, 5 Jan 2013 17:59:25 +1000
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <CAFGK7-F8K8P7JyaKkwFH_HSxKLE6A2U5BTrQAu-EYzKJ5zLU4w@mail.gmail.com> |
--===============0324344707== Content-Type: multipart/alternative; boundary=e89a8fb1f5947e34e304d285f923 --e89a8fb1f5947e34e304d285f923 Content-Type: text/plain; charset=ISO-8859-1 Reading the 1.1 spec at http://connect.creativelabs.com/openal/Documentation/OpenAL 1.1 Specification.htm, section 2.7: "...The alGetString function returns a pointer to a constant (literal) string that is identical to the identifier used for the enumeration value, as defined in the specification." This is not the behavior of the OpenAL Soft library. For example, alGetString( AL_NO_ERROR ) returns "No Error", whereas the wording of the spec indicates it should return "AL_NO_ERROR". Is the spec linked above out of date, is the library incorrect, or am I reading the spec wrong? --e89a8fb1f5947e34e304d285f923 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Reading the 1.1 spec at=A0<a href=3D"http://connect.c= reativelabs.com/openal/Documentation/OpenAL">http://connect.creativelabs.co= m/openal/Documentation/OpenAL</a> 1.1 Specification.htm, section 2.7:<br></= div> <div><br></div><div>"...<span class=3D"" style=3D"border-collapse:sepa= rate;color:rgb(0,0,0);font-family:'Times New Roman';font-size:16px"= >The alGetString function returns a pointer to a constant (literal) string = that is identical to the identifier used for the enumeration value, as defi= ned in the specification."</span></div> <div><span class=3D"" style=3D"border-collapse:separate;color:rgb(0,0,0);fo= nt-family:'Times New Roman';font-size:16px"><br></span></div><div><= span class=3D"" style=3D"border-collapse:separate;color:rgb(0,0,0);font-fam= ily:'Times New Roman';font-size:16px">This is not the behavior of t= he OpenAL Soft library. For example, alGetString( AL_NO_ERROR ) returns &qu= ot;No Error", whereas the wording of the spec indicates it should retu= rn "AL_NO_ERROR".</span></div> <div><font class=3D"Apple-style-span" color=3D"#000000" face=3D"'Times = New Roman'" size=3D"3"><span class=3D"Apple-style-span" style=3D"border= -collapse:separate"><br></span></font></div><div><span class=3D"" style=3D"= border-collapse:separate;color:rgb(0,0,0);font-family:'Times New Roman&= #39;;font-size:16px">Is the spec linked above out of date, is the library i= ncorrect, or am I reading the spec wrong?</span></div> </div> --e89a8fb1f5947e34e304d285f923-- --===============0324344707== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal --===============0324344707==--