mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-10-26 18:40:26 -04:00 
			
		
		
		
	UDP source plugin: fixed AM demod
This commit is contained in:
		
							parent
							
								
									66a588403c
								
							
						
					
					
						commit
						dda67c0947
					
				| @ -247,7 +247,7 @@ void UDPSrc::feed(const SampleVector::const_iterator& begin, const SampleVector: | ||||
| 			} | ||||
| 			else if (m_sampleFormat == FormatAMMono) | ||||
| 			{ | ||||
| 				FixReal demod = m_squelchOpen ? (FixReal) (32768.0f * sqrt(inMagSq) * m_gain) : 0; | ||||
| 				FixReal demod = m_squelchOpen ? (FixReal) (sqrt(inMagSq) * m_gain) : 0; | ||||
| 				m_udpBufferMono->write(demod); | ||||
| 				m_outMovingAverage.feed((demod * demod) / (1<<30)); | ||||
| 			} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user