mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-10-31 04:50:29 -04:00 
			
		
		
		
	LimeSDR and BladeRF output: do not resize sample FIFO to a fixed value in the thread constructor
This commit is contained in:
		
							parent
							
								
									d47a89f133
								
							
						
					
					
						commit
						a61348948a
					
				| @ -40,6 +40,7 @@ BladerfOutput::BladerfOutput(DeviceSinkAPI *deviceAPI) : | ||||
| 	m_deviceDescription("BladeRFOutput"), | ||||
| 	m_running(false) | ||||
| { | ||||
|     m_sampleSourceFifo.resize(16*BLADERFOUTPUT_BLOCKSIZE); | ||||
|     openDevice(); | ||||
|     m_deviceAPI->setBuddySharedPtr(&m_sharedParams); | ||||
| } | ||||
|  | ||||
| @ -28,7 +28,6 @@ BladerfOutputThread::BladerfOutputThread(struct bladerf* dev, SampleSourceFifo* | ||||
| 	m_log2Interp(0), | ||||
| 	m_fcPos(0) | ||||
| { | ||||
|     m_sampleFifo->resize(16*BLADERFOUTPUT_BLOCKSIZE); | ||||
| } | ||||
| 
 | ||||
| BladerfOutputThread::~BladerfOutputThread() | ||||
|  | ||||
| @ -43,6 +43,7 @@ LimeSDROutput::LimeSDROutput(DeviceSinkAPI *deviceAPI) : | ||||
|     m_running(false), | ||||
|     m_channelAcquired(false) | ||||
| { | ||||
|     m_sampleSourceFifo.resize(16*LIMESDROUTPUT_BLOCKSIZE); | ||||
|     m_streamId.handle = 0; | ||||
|     suspendRxBuddies(); | ||||
|     suspendTxBuddies(); | ||||
|  | ||||
| @ -27,7 +27,6 @@ LimeSDROutputThread::LimeSDROutputThread(lms_stream_t* stream, SampleSourceFifo* | ||||
|     m_log2Interp(0), | ||||
|     m_fcPos(LimeSDROutputSettings::FC_POS_CENTER) | ||||
| { | ||||
|     m_sampleFifo->resize(16*LIMESDROUTPUT_BLOCKSIZE); | ||||
| } | ||||
| 
 | ||||
| LimeSDROutputThread::~LimeSDROutputThread() | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user