|
From: Brian M. <ma...@us...> - 2003-04-27 21:25:40
|
Update of /cvsroot/java-game-lib/LWJGL/website/documents/tutorials/openal In directory sc8-pr-cvs1:/tmp/cvs-serv17713 Modified Files: openal_basics.html Log Message: add: default constructor for OpenAL Index: openal_basics.html CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/website/documents/tutorials/openal/openal_basics.html =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/website/documents/tutorials/openal/openal_basics.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- openal_basics.html 27 Apr 2003 18:38:00 -0000 1.3 +++ openal_basics.html 27 Apr 2003 21:25:35 -0000 1.4 @@ -46,20 +46,13 @@ public PlayTest() {<br> try {<br> </tt> -<tt> al = new AL(null, 44100, 15, false);<br> +<tt> al = new AL();<br> al.create();<br> } catch (Exception e) {<br> e.printStackTrace();<br> }</tt><tt><br> }<br> }</tt></p> -The arguments passed to AL, are as follows:<br> -<ul> - <li><i>null</i> - Device argument, depends on OpenAL native implementation. We just pass Null to get default device.</li> - <li><i>44100</i> - Frequency for mixing output buffer, in units of Hz.</li> - <li><i>15</i> - Refresh intervalls, in units of Hz.</li> - <li><i>false</i> - Flag, indicating a synchronous context (Whether or not you're not going to synchronice sound to framerate).</li> -</ul> <p><b>1.3 Buffer and Source creation</b><br> Now that we have created the AL instance, we need to create two things to actually get some sound. We need to create a buffer to hold |