Android ByteBuffer Create allocateAudioBuffer(int size)

Here you can find the source of allocateAudioBuffer(int size)

Description

allocate Audio Buffer

License

Open Source License

Declaration

public static ByteBuffer allocateAudioBuffer(int size) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.nio.ByteBuffer;
import java.nio.ByteOrder;

public class Main {
    public static ByteBuffer allocateAudioBuffer(int size) {
        ByteBuffer bb = ByteBuffer.allocateDirect(size);
        bb.order(ByteOrder.LITTLE_ENDIAN);
        return bb;
    }//from   w w w.  j  a  v  a  2  s . c o  m
}

Related

  1. makeByteBuffer(int size)
  2. newByteBuffer(int numBytes)
  3. newByteBuffer(int paramInt)
  4. setupByteBuffer(ByteBuffer preBuffer, byte[] array)
  5. renewBuffer(ByteBuffer buf)
  6. makeByteBuffer(byte[] array)
  7. ConvToByteBuffer(byte buf[])
  8. ConvToByteBuffer(byte buf[])
  9. makeByteBuffer(byte[] arr)