Commit Graph
32 Commits
Author SHA1 Message Date
itsmattkc 391534b71d fixed waveform issue 2021-08-01 17:10:45 -07:00
itsmattkc be4a18d7de moved visual waveforms to block
This should be nicer, however it has a bug that I need to fix
2021-08-01 16:43:53 -07:00
itsmattkc 593a3b025a Merge branch 'master' into nodeview-redux 2021-07-16 20:09:33 -07:00
luzpaz 01536f9865 Fix various typos in code comments (#1670) [skip ci]
Found via `codespell -q 3 -S *.ts,*.xml -L ba,keypair,numer,uint`
2021-07-13 13:54:30 +02:00
itsmattkc 43d3fc57f2 Update audiovisualwaveform.cpp
audiovisualwaveform: fixed shift issue
2021-07-11 23:31:36 -07:00
itsmattkc 75c102d351 waveform: minor corrections 2021-07-08 12:19:27 -07:00
itsmattkc 1f0de6c5bb waveform: fixed precision issue when generating from sample data
Fixes #1664
2021-07-08 12:08:05 -07:00
itsmattkc 558d849d27 waveform: flip Y axis
Fixes #1666
2021-07-08 11:55:35 -07:00
itsmattkc 08e2fa4d8e renderer: generate audio waveforms in render threads
Solves UI lag issues with long audio sequences.
2021-06-11 23:30:55 -07:00
itsmattkc 7e62ad4e10 audiovisualwaveform: optimize shifting code 2021-05-30 12:55:50 +10:00
itsmattkc f2f5ab8739 audiovisualwaveform: keep track of length
Useful to determine how long the visual waveform is.
2021-04-27 00:49:04 +10:00
itsmattkc 77d4b18a60 updated copyright year for 2021 [skip ci] 2021-04-17 18:56:50 +10:00
itsmattkc 6b7412aff6 audiovisualwaveform: removed templates
I'm not sure if this will make any difference performance-wise,
but we don't need them anymore so yeah.
2021-04-14 15:27:34 +10:00
itsmattkc 3ffb2fde1c audiomonitor: use mipmapped waveform
Since we have these now, may as well use them. This should
improve general playback performance since the audio monitor
will be able to iterate far fewer
2021-04-14 15:25:38 +10:00
itsmattkc 8e1ac7c1a0 audiovisualwaveform: minor refactoring
Improves code readability.
2021-04-14 13:47:46 +10:00
itsmattkc b425754fef audiovisualwaveform: don't draw empty sample 2021-04-14 13:47:33 +10:00
itsmattkc 7107afaf99 audiovisualwaveform: mipmap waveforms 2021-04-13 23:43:44 +10:00
itsmattkc fb410e7c96 use vectors for sample buffers rather than raw ptr arrays 2021-03-17 11:54:14 +11:00
itsmattkc 827c9f93cc AudioVisualWaveform: implement same size check as AudioPlaybackCache to prevent index out of bounds crashes 2020-11-24 11:02:42 +11:00
itsmattkc 75d4cd899b use hardcoded namespace
The macro defined namespaces confused the hell out of lupdate and more or less broke translations permanently. Looks like the only way we can do it is to have a hardcoded namespace, which goes against my instinct, but honestly how likely is it that we'll change the namespace anyway (I guess forks might want to do it, but that's their problem ;) )
2020-11-17 20:24:42 +11:00
itsmattkc d241090a9f finally updated the copyright year 2020-11-17 20:13:22 +11:00
itsmattkc 82ceef2013 audio: don't write samples if channel count is zero 2020-09-21 04:44:55 +10:00
itsmattkc 6ebcb7162e audiovisualwaveform: clamp audio values so they stay inbounds 2020-06-22 00:39:38 +10:00
itsmattkc ffebe70a65 audiovisualwaveform: fixed bug that would make all channels the same 2020-06-12 03:27:00 +10:00
itsmattkc ccf5d4cece audiovisualwaveform: detect if the start index exceeds the buffer sample count
Fixes segfault.
2020-06-11 21:24:50 +10:00
itsmattkc ee3fa529cb audiovisualwaveform: reinterpret cast to char*
Bypasses GCC warning about qfloat16's constructor.
2020-06-08 04:03:24 +10:00
itsmattkc a29de7cea0 audiovisualwaveform: allow only partial sum overwrite 2020-06-05 15:02:44 +10:00
itsmattkc 5eeef76b62 waveform: shift track waveform alongside cache 2020-06-04 23:32:50 +10:00
itsmattkc 0e87762afa waveforms: moved waveform to track rather than block
This is a much more robust and thread-safe system of storing the waveforms.
2020-06-04 18:03:21 +10:00
itsmattkc 08eb12710c audiovisualwaveform: ignore OverwriteSums if input data is empty
Prevents potential index out of bounds error.
2020-06-03 03:37:46 +10:00
itsmattkc 1fce380cc6 timeline: automate waveform resizing
Now each UndoCommand won't have to handle it (unless it can introduce
specific optimizations).
2020-06-01 14:54:14 +10:00
itsmattkc c2e47a296c timeline: heavily optimized and improved nearly all timeline optimizations
Features a lot of timeline-related cache optimizations as well as general
optimizations and improvements in timeline behavior. Should improve
usability significantly.
2020-06-01 04:42:59 +10:00