Updates all reusable buffer queues to automatically set the user count

to 1 on all provided buffers by default.
This commit is contained in:
Denny
2018-07-01 07:08:52 -04:00
parent 0051a1d381
commit e88944e53d
36 changed files with 18 additions and 55 deletions

View File

@@ -48,7 +48,6 @@ public class MP3SilenceGenerator implements ISilenceGenerator
int length = (int)(duration * 8); //8000 Hz sample rate
ReusableAudioPacket silencePacket = mAudioPacketQueue.getBuffer(length);
Arrays.fill(silencePacket.getAudioSamples(), 0.0f);
silencePacket.incrementUserCount();
List<ReusableAudioPacket> silencePackets = new ArrayList<>();
silencePackets.add(silencePacket);