mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
Tweaks to spectrum quality index meaning. Insane quality is no longer nearly as insane.
Originally committed to SVN as r1305.
This commit is contained in:
parent
0a1069407e
commit
405c263700
@ -216,10 +216,12 @@ AudioSpectrum::AudioSpectrum(AudioProvider *_provider)
|
|||||||
line_length = 1 << (8 + quality_index - 1);
|
line_length = 1 << (8 + quality_index - 1);
|
||||||
else
|
else
|
||||||
line_length = 1 << 8;
|
line_length = 1 << 8;
|
||||||
if (quality_index > 0)
|
if (quality_index == 0)
|
||||||
fft_overlaps = 1 << (quality_index*2);
|
|
||||||
else
|
|
||||||
fft_overlaps = 1;
|
fft_overlaps = 1;
|
||||||
|
else if (quality_index == 1)
|
||||||
|
fft_overlaps = 4;
|
||||||
|
else
|
||||||
|
fft_overlaps = 1 << quality_index;
|
||||||
|
|
||||||
__int64 _num_lines = provider->GetNumSamples() / line_length / 2;
|
__int64 _num_lines = provider->GetNumSamples() / line_length / 2;
|
||||||
//assert (_num_lines < (1<<31)); // hope it fits into 32 bits...
|
//assert (_num_lines < (1<<31)); // hope it fits into 32 bits...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user