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

Function WindowFuncName

libraries/lib-fft/FFT.cpp:332–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332const TranslatableString WindowFuncName(int whichFunction)
333{
334 switch (whichFunction) {
335 default:
336 case eWinFuncRectangular:
337 return XO("Rectangular");
338 case eWinFuncBartlett:
339 /* i18n-hint a proper name */
340 return XO("Bartlett");
341 case eWinFuncHamming:
342 /* i18n-hint a proper name */
343 return XO("Hamming");
344 case eWinFuncHann:
345 /* i18n-hint a proper name */
346 return XO("Hann");
347 case eWinFuncBlackman:
348 /* i18n-hint a proper name */
349 return XO("Blackman");
350 case eWinFuncBlackmanHarris:
351 /* i18n-hint two proper names */
352 return XO("Blackman-Harris");
353 case eWinFuncWelch:
354 /* i18n-hint a proper name */
355 return XO("Welch");
356 case eWinFuncGaussian25:
357 /* i18n-hint a mathematical function named for C. F. Gauss */
358 return XO("Gaussian(a=2.5)");
359 case eWinFuncGaussian35:
360 /* i18n-hint a mathematical function named for C. F. Gauss */
361 return XO("Gaussian(a=3.5)");
362 case eWinFuncGaussian45:
363 /* i18n-hint a mathematical function named for C. F. Gauss */
364 return XO("Gaussian(a=4.5)");
365 }
366}
367
368void NewWindowFunc(int whichFunction, size_t NumSamplesIn, bool extraSample, float *in)
369{

Callers 2

PopulateMethod · 0.85
PopulateMethod · 0.85

Calls

no outgoing calls

Tested by 1

PopulateMethod · 0.68