comparison foosdk/sdk/foobar2000/helpers/VisUtils.h @ 1:20d02a178406 default tip

*: check in everything else yay
author Paper <paper@tflc.us>
date Mon, 05 Jan 2026 02:15:46 -0500
parents
children
comparison
equal deleted inserted replaced
0:e9bb126753e7 1:20d02a178406
1 #pragma once
2
3 namespace VisUtils {
4 //! Turns an arbitrary audio_chunk into a valid chunk to run FFT on, with proper sample count etc.
5 //! @param centerOffset Time offset (in seconds) inside the source chunk to center the output on, in case the FFT window is smaller than input data.
6 void PrepareFFTChunk(audio_chunk const & source, audio_chunk & out, double centerOffset);
7
8 bool IsValidFFTSize(t_size size);
9 t_size MatchFFTSize(t_size samples);
10 };