MCPcopy Create free account
hub / github.com/audacity/audacity / RunFunctionSelect

Method RunFunctionSelect

src/effects/Equalization48x.cpp:255–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253// Disable the unreachable code warning in MSVC, for this function.
254#pragma warning(disable: 4702)
255bool EffectEqualization48x::RunFunctionSelect(int flags, int count, WaveTrack * track, sampleCount start, sampleCount len)
256{
257 // deal with tables here
258 flags&=~(MATH_FUNCTION_BITREVERSE_TABLE|MATH_FUNCTION_SIN_COS_TABLE); // clear out the table flags
259 switch (flags)
260 {
261 case MATH_FUNCTION_SSE:
262 return ProcessOne4x(count, track, start, len);
263 break;
264 case MATH_FUNCTION_SSE|MATH_FUNCTION_THREADED:
265 return ProcessOne1x4xThreaded(count, track, start, len);
266 break;
267 case MATH_FUNCTION_THREADED:
268 case MATH_FUNCTION_THREADED|MATH_FUNCTION_SEGMENTED_CODE:
269 return ProcessOne1x4xThreaded(count, track, start, len, 1);
270 break;
271 case MATH_FUNCTION_SEGMENTED_CODE:
272 return ProcessOne1x(count, track, start, len);
273 break;
274 default:
275 return !mEffectEqualization->ProcessOne(count, track, start, len);
276 break;
277 }
278 return false;
279}
280#pragma warning(pop)
281
282bool EffectEqualization48x::Process(EffectEqualization* effectEqualization)

Callers

nothing calls this directly

Calls 1

ProcessOneMethod · 0.45

Tested by

no test coverage detected