diff options
Diffstat (limited to 'src/audio')
| -rw-r--r-- | src/audio/audio.cc | 3 | ||||
| -rw-r--r-- | src/audio/fdct.cc | 3 | ||||
| -rw-r--r-- | src/audio/idct.cc | 3 | ||||
| -rw-r--r-- | src/audio/window.cc | 3 |
4 files changed, 8 insertions, 4 deletions
diff --git a/src/audio/audio.cc b/src/audio/audio.cc index e79e741..abdd2aa 100644 --- a/src/audio/audio.cc +++ b/src/audio/audio.cc @@ -39,7 +39,8 @@ void audio_init() { } } -void audio_update() {} +void audio_update() { +} void audio_shutdown() { ma_device_stop(&g_device); diff --git a/src/audio/fdct.cc b/src/audio/fdct.cc index ad95496..620fc37 100644 --- a/src/audio/fdct.cc +++ b/src/audio/fdct.cc @@ -10,7 +10,8 @@ void fdct_512(const float *input, float *output) { for (int k = 0; k < DCT_SIZE; ++k) { float sum = 0.0f; for (int n = 0; n < DCT_SIZE; ++n) { - sum += input[n] * cosf(PI / (float)DCT_SIZE * ((float)n + 0.5f) * (float)k); + sum += + input[n] * cosf(PI / (float)DCT_SIZE * ((float)n + 0.5f) * (float)k); } output[k] = sum; } diff --git a/src/audio/idct.cc b/src/audio/idct.cc index 97fc224..3ab4611 100644 --- a/src/audio/idct.cc +++ b/src/audio/idct.cc @@ -10,7 +10,8 @@ void idct_512(const float *input, float *output) { for (int n = 0; n < DCT_SIZE; ++n) { float sum = input[0] / 2.0f; for (int k = 1; k < DCT_SIZE; ++k) { - sum += input[k] * cosf(PI / (float)DCT_SIZE * (float)k * ((float)n + 0.5f)); + sum += + input[k] * cosf(PI / (float)DCT_SIZE * (float)k * ((float)n + 0.5f)); } output[n] = sum * (2.0f / (float)DCT_SIZE); } diff --git a/src/audio/window.cc b/src/audio/window.cc index 927a64e..6edde0c 100644 --- a/src/audio/window.cc +++ b/src/audio/window.cc @@ -8,6 +8,7 @@ void hamming_window_512(float *window) { const float PI = 3.14159265358979323846f; for (int i = 0; i < WINDOW_SIZE; ++i) { - window[i] = 0.54f - 0.46f * cosf(2.0f * PI * (float)i / (float)(WINDOW_SIZE - 1)); + window[i] = + 0.54f - 0.46f * cosf(2.0f * PI * (float)i / (float)(WINDOW_SIZE - 1)); } }
\ No newline at end of file |
