comment fixing
This commit is contained in:
parent
5c72fa9cb2
commit
2c5cab2fa1
|
@ -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) {
|
||||||
|
@ -126,8 +125,8 @@ 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());
|
||||||
|
|
Loading…
Reference in New Issue