comment fixing

This commit is contained in:
Brian Matzon 2004-12-07 06:38:37 +00:00
parent 5c72fa9cb2
commit 2c5cab2fa1
1 changed files with 3 additions and 4 deletions

View File

@ -102,8 +102,7 @@ public class StreamPlayerMemory {
/** /**
* Reads the file into a ByteBuffer * Reads the file into a ByteBuffer
* *
* @param filename * @param filename Name of file to load
* Name of file to load
* @return ByteBuffer containing file data * @return ByteBuffer containing file data
*/ */
static protected ByteBuffer getData(String filename) { static protected ByteBuffer getData(String filename) {
@ -127,7 +126,7 @@ public class StreamPlayerMemory {
//done reading, close //done reading, close
bis.close(); bis.close();
// if ogg vorbis data, we need to pass it unmodified to alBufferData // place it in a buffer
buffer = ByteBuffer.allocateDirect(baos.size()); buffer = ByteBuffer.allocateDirect(baos.size());
buffer.order(ByteOrder.nativeOrder()); buffer.order(ByteOrder.nativeOrder());
buffer.put(baos.toByteArray()); buffer.put(baos.toByteArray());