Package ej.audio

Class AudioHeap

java.lang.Object
ej.audio.AudioHeap

public class AudioHeap extends Object
  • Method Details

    • getInstance

      public static AudioHeap getInstance()
    • allocate

      public boolean allocate(int blockSize)
      Simulates the allocation of blockSize bytes on the heap.
      Parameters:
      blockSize - the size of the block, in bytes, to allocate
      Returns:
      true if heap can be allocated, false otherwise
    • onFree

      public void onFree(int blockSize)