mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	make speex-float-3 the default resampler
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1973 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									c6a7f06e23
								
							
						
					
					
						commit
						1c0690776d
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -132,7 +132,7 @@ pa_core* pa_core_new(pa_mainloop_api *m, int shared) {
 | 
				
			||||||
    c->module_idle_time = 20;
 | 
					    c->module_idle_time = 20;
 | 
				
			||||||
    c->scache_idle_time = 20;
 | 
					    c->scache_idle_time = 20;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    c->resample_method = PA_RESAMPLER_SPEEX_FLOAT_BASE;
 | 
					    c->resample_method = PA_RESAMPLER_SPEEX_FLOAT_BASE + 3;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    c->is_system_instance = 0;
 | 
					    c->is_system_instance = 0;
 | 
				
			||||||
    c->disallow_module_loading = 0;
 | 
					    c->disallow_module_loading = 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -195,7 +195,7 @@ pa_resampler* pa_resampler_new(
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (resample_method == PA_RESAMPLER_AUTO)
 | 
					    if (resample_method == PA_RESAMPLER_AUTO)
 | 
				
			||||||
        resample_method = PA_RESAMPLER_SPEEX_FLOAT_BASE + 0;
 | 
					        resample_method = PA_RESAMPLER_SPEEX_FLOAT_BASE + 3;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    r = pa_xnew(pa_resampler, 1);
 | 
					    r = pa_xnew(pa_resampler, 1);
 | 
				
			||||||
    r->mempool = pool;
 | 
					    r->mempool = pool;
 | 
				
			||||||
| 
						 | 
					@ -439,10 +439,10 @@ pa_resample_method_t pa_parse_resample_method(const char *string) {
 | 
				
			||||||
            return m;
 | 
					            return m;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!strcmp(string, "speex-fixed"))
 | 
					    if (!strcmp(string, "speex-fixed"))
 | 
				
			||||||
        return PA_RESAMPLER_SPEEX_FIXED_BASE + 0;
 | 
					        return PA_RESAMPLER_SPEEX_FIXED_BASE + 3;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!strcmp(string, "speex-float"))
 | 
					    if (!strcmp(string, "speex-float"))
 | 
				
			||||||
        return PA_RESAMPLER_SPEEX_FLOAT_BASE + 0;
 | 
					        return PA_RESAMPLER_SPEEX_FLOAT_BASE + 3;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return PA_RESAMPLER_INVALID;
 | 
					    return PA_RESAMPLER_INVALID;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue