aboutsummaryrefslogtreecommitdiffstats
path: root/src/ru/olamedia/util/BufferUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ru/olamedia/util/BufferUtils.java')
-rw-r--r--src/ru/olamedia/util/BufferUtils.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ru/olamedia/util/BufferUtils.java b/src/ru/olamedia/util/BufferUtils.java
new file mode 100644
index 0000000..10d9f36
--- /dev/null
+++ b/src/ru/olamedia/util/BufferUtils.java
@@ -0,0 +1,16 @@
+package ru.olamedia.util;
+
+import java.nio.FloatBuffer;
+import java.nio.ShortBuffer;
+
+public class BufferUtils {
+
+ public static ShortBuffer createShortBuffer(int capacity) {
+ return ShortBuffer.allocate(capacity);
+ }
+
+ public static FloatBuffer createFloatBuffer(int capacity) {
+ return FloatBuffer.allocate(capacity);
+ }
+
+}