public class LimitAudioQueue
extends java.lang.Object
演示 data 塞入数据,data容器的数据变化过程
-----------------------↓ A B C D E F -----------------------↓ A B C D E F G H I J -----------------------↓ A B C D E F G H I J K L -----------------------↓ B C D E F G H I J K L M -----------------------↓ C D E F G H I J K L M N -----------------------↓
Constructor and Description |
---|
LimitAudioQueue(int duration,
int channels) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
重置长度标注位
|
void |
offer(byte[] offerData)
塞入数据
|
byte[] |
toArray()
取出缓存的byte[],
会保证和存入时的顺序一致。
|