mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Merges changes from master branch to resolve issue with CPU and memory
and constraints on scheduled thread pool saturation. Adds a new scheduled thread pool for each processing chain that the components in the chain can share, versus the single shared pool exposed by the threadpoolmanager class.
This commit is contained in:
@@ -86,10 +86,9 @@ public class RecorderManager implements Listener<AudioPacket>
|
||||
try
|
||||
{
|
||||
RealBufferWaveRecorder recorder =
|
||||
new RealBufferWaveRecorder( mThreadPoolManager,
|
||||
AUDIO_SAMPLE_RATE, filePrefix );
|
||||
new RealBufferWaveRecorder( AUDIO_SAMPLE_RATE, filePrefix );
|
||||
|
||||
recorder.start();
|
||||
recorder.start( mThreadPoolManager.getScheduledExecutorService() );
|
||||
|
||||
recorder.receive( audioPacket.getAudioBuffer() );
|
||||
mRecorders.put( identifier, recorder );
|
||||
@@ -177,7 +176,6 @@ public class RecorderManager implements Listener<AudioPacket>
|
||||
sb.append( channelName );
|
||||
sb.append( "_baseband" );
|
||||
|
||||
return new ComplexBufferWaveRecorder( mThreadPoolManager,
|
||||
AUDIO_SAMPLE_RATE, sb.toString() );
|
||||
return new ComplexBufferWaveRecorder( AUDIO_SAMPLE_RATE, sb.toString() );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user