This commit is contained in:
Brian Matzon 2004-08-20 06:17:15 +00:00
parent b9bf056c4c
commit e23538a518
2 changed files with 61 additions and 77 deletions

View file

@ -139,18 +139,4 @@ public class StreamPlayer {
}
return buffer;
}
/**
* Creates a ByteBuffer buffer to hold specified bytes - strictly a utility
* method
*
* @param size
* how many bytes to contain
* @return created ByteBuffer
*/
protected static ByteBuffer createByteBuffer(int size) {
ByteBuffer temp = ByteBuffer.allocateDirect(4 * size);
temp.order(ByteOrder.nativeOrder());
return temp;
}
}