1
0
mirror of synced 2025-01-08 12:41:38 +01:00
ImHex/plugins
paxcut 72822d03aa
fix: Stereo sound visualizations (#1970)
Even tough the sound visualizer has `channels` as one of its parameters
it wasn't using it properly.

### Problem description
The biggest problem is that at each frame the index was being advanced
per channel frame_count increments. The number of channels also
determines how many graph will be needed to display the graphs of the
visualized sound files. Besides these two problems there were many
others like incorrect playback time, cracking audio, etc. which will not
be mentioned.

### Implementation description
To sample the signal a channel sampler was created based on the one used
previously that returns as many sampled signals as there are channels.
This PR aims hopefully at fixing all the problems encountered, and it
has been tested extensively using `Audacity` exported samples to ensure
the visualizer fidelity on playback and graph appearance.

### Screenshots

![image](https://github.com/user-attachments/assets/03453860-693f-4af4-b6c6-e828a102c389)
2024-11-29 17:22:22 +01:00
..
builtin feat: Added support for inline visualizers in custom data inspectors (#1966) 2024-11-29 17:20:28 +01:00
decompress fix: LZMA decompressor memory errors (#1873) 2024-09-15 15:20:17 +02:00
diffing lang: Update Chinese (Simplified) translations (#1894) 2024-09-15 15:17:25 +02:00
disassembler fix: Task names not displaying correctly anymore 2024-07-27 14:09:52 +02:00
fonts fix: Crash on exit when using custom font from file (#1815) 2024-07-15 22:22:02 +02:00
hashes fix: Segfault when hashing regions spanning multiple MiBs (#1804) 2024-07-21 20:35:38 +02:00
script_loader impr: Reserve space to avoid multiple allocations when loading scripts (#1929) 2024-11-24 11:28:45 +01:00
ui feat: Added support for inline visualizers in custom data inspectors (#1966) 2024-11-29 17:20:28 +01:00
visualizers fix: Stereo sound visualizations (#1970) 2024-11-29 17:22:22 +01:00
windows lang: Update Chinese (Simplified) translations (#1894) 2024-09-15 15:17:25 +02:00
yara_rules fix: Task names not displaying correctly anymore 2024-07-27 14:09:52 +02:00