summaryrefslogtreecommitdiffstats
path: root/Fonts/Bitmaps
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-07-08 18:55:41 -0700
committeryum <yum.food.vr@gmail.com>2023-07-08 19:06:45 -0700
commita602bfb95665697b15a2de58694c6ac064af2916 (patch)
tree79cba0aeda47cd5829202d82f2644364d27b655d /Fonts/Bitmaps
parent80f46a7a346e73c94a3bb8ae01099743020ef2a4 (diff)
Preserve audio chunk length when dropping samples
When we commit a transcription, we drop the corresponding audio data. Audio data is represented as a list of chunks. Each chunk contains a few hundred samples of audio data, representing O(10ms) of audio. If we want to drop a few seconds of data, this means simply deleting many chunks of audio. There's usually a chunk where we want to drop some portion of audio data. Instead of slicing away that part of the chunk, which would change its length, this change zeroes it out. This preserves the assumption that each chunk has the same temporal length.
Diffstat (limited to 'Fonts/Bitmaps')
0 files changed, 0 insertions, 0 deletions