| 
									
										
										
										
											2014-05-18 16:52:39 +01:00
										 |  |  | #include "dsp/fftengine.h"
 | 
					
						
							|  |  |  | #ifdef USE_KISSFFT
 | 
					
						
							|  |  |  | #include "dsp/kissengine.h"
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | #ifdef USE_FFTW
 | 
					
						
							|  |  |  | #include "dsp/fftwengine.h"
 | 
					
						
							|  |  |  | #endif // USE_FFTW
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | FFTEngine::~FFTEngine() | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | FFTEngine* FFTEngine::create() | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | #ifdef USE_FFTW
 | 
					
						
							| 
									
										
										
										
											2017-11-12 16:34:38 +01:00
										 |  |  | 	qDebug("FFTEngine::create: using FFTW engine"); | 
					
						
							| 
									
										
										
										
											2014-05-18 16:52:39 +01:00
										 |  |  | 	return new FFTWEngine; | 
					
						
							| 
									
										
										
										
											2018-02-22 03:04:42 +01:00
										 |  |  | #elif USE_KISSFFT
 | 
					
						
							| 
									
										
										
										
											2017-11-12 16:34:38 +01:00
										 |  |  | 	qDebug("FFTEngine::create: using KissFFT engine"); | 
					
						
							| 
									
										
										
										
											2014-05-18 16:52:39 +01:00
										 |  |  | 	return new KissEngine; | 
					
						
							| 
									
										
										
										
											2018-02-22 03:04:42 +01:00
										 |  |  | #else // USE_KISSFFT
 | 
					
						
							| 
									
										
										
										
											2017-11-12 16:34:38 +01:00
										 |  |  | 	qCritical("FFTEngine::create: no engine built"); | 
					
						
							| 
									
										
										
										
											2018-02-22 03:04:42 +01:00
										 |  |  | 	return 0; | 
					
						
							|  |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2014-05-18 16:52:39 +01:00
										 |  |  | } |