diff options
| author | skal <pascal.massimino@gmail.com> | 2026-01-28 01:42:01 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-01-28 01:42:01 +0100 |
| commit | 7c66176026ef142d3dde9a8df30f46d37bf1c52f (patch) | |
| tree | 00127fb4742e099596e8c5298a15cc1aae5f7a04 /tools | |
| parent | bc7411f855b1580e4cfbd067106222e98e59d49f (diff) | |
update SESSION_NOTES
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/spectool.cc | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/tools/spectool.cc b/tools/spectool.cc index 49c6384..292de39 100644 --- a/tools/spectool.cc +++ b/tools/spectool.cc @@ -101,14 +101,13 @@ int play_spec(const char *in_path) { return 1; } - std::vector<float> spec_data(header.num_frames * header.dct_size); - fread(spec_data.data(), sizeof(float), spec_data.size(), f_in); - fclose(f_in); - - platform_init(); - audio_init(); - - Spectrogram spec; + std::vector<float> spec_data(header.num_frames * header.dct_size); + fread(spec_data.data(), sizeof(float), spec_data.size(), f_in); + fclose(f_in); + + platform_init_window(false); + audio_init(); + Spectrogram spec; spec.spectral_data_a = spec_data.data(); spec.spectral_data_b = spec_data.data(); // Point both to the same buffer for playback |
