mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Resolves #387 10 second/10 minute audio recording time limit.
Updated audio packet wave recorder to correctly dequeue audio packets to ensure that the overflowable buffer queue accounting process was working correctly. Updated overflowable buffer queue's poll() method to correctly decrement the queue size counter. Resolved issue where the mutable metadata was being prematurely reset and causing the end audio packet to be mis-identified. This resulted in the recording manager not stopping the recording on command with the timeout mechanism kicking in after a brief delay.
This commit is contained in:
@@ -101,7 +101,14 @@ public class OverflowableTransferQueue<E>
|
||||
*/
|
||||
public E poll()
|
||||
{
|
||||
return mQueue.poll();
|
||||
E element = mQueue.poll();
|
||||
|
||||
if(element != null)
|
||||
{
|
||||
mCounter.decrementAndGet();
|
||||
}
|
||||
|
||||
return element;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user