History

Downsampling speed-ups; comparative execution time examples: 192000 -> 44100 58.6% 100000 -> 40000 83.9% 96000 -> 44100 56.3% 48000 -> 44100 71.2%

Rob Sykes committed 14 years ago

Commit a69f6b21 parent 959708b12 files · +546 −508Browse files

Showing the changes to src/spectrogram.c (1 of 12 files). Show all

Unified · Split

src/spectrogram.c+1−1
@@ -161,7 +161,7 @@ static double make_window(priv_t * p, int end) · 160 unmodified lines
161161 case Window_Bartlett: lsx_apply_bartlett(w, n); break;
162162 case Window_Rectangular: break;
163163 default: lsx_apply_kaiser(w, n, lsx_kaiser_beta(
164− (p->dB_range + p->gain) * (1.1 + p->window_adjust / 50)));
164+ (p->dB_range + p->gain) * (1.1 + p->window_adjust / 50), .1));
165165 }
166166 for (i = 0; i < p->dft_size; ++i) sum += p->window[i];
167167 for (i = 0; i < p->dft_size; ++i) p->window[i] *= 2 / sum

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t