mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Don't do filtering when pitch shifting for now.
This may be changed back to a first order LPF later on.
This commit is contained in:
@@ -1496,7 +1496,7 @@ static ma_result ma_engine_effect_init(ma_engine* pEngine, ma_engine_effect* pEf
|
||||
*/
|
||||
converterConfig.resampling.allowDynamicSampleRate = MA_TRUE; /* This makes sure a resampler is always initialized. TODO: Need a flag that specifies that no pitch shifting is required for this sound so we can avoid the cost of the resampler. Even when the pitch is 1, samples still run through the resampler. */
|
||||
converterConfig.resampling.algorithm = ma_resample_algorithm_linear;
|
||||
converterConfig.resampling.linear.lpfOrder = 1;
|
||||
converterConfig.resampling.linear.lpfOrder = 0;
|
||||
|
||||
result = ma_data_converter_init(&converterConfig, &pEffect->converter);
|
||||
if (result != MA_SUCCESS) {
|
||||
|
||||
Reference in New Issue
Block a user