create waveform seekbar widget; still more to do

This commit is contained in:
Drew Weymouth
2025-07-24 08:51:25 -07:00
parent ae7cb55c8c
commit 43f6d501c9
5 changed files with 140 additions and 29 deletions
-3
View File
@@ -204,9 +204,6 @@ func convertToWav(ctx context.Context, inPath, outPath string) error {
}
func setPixel(img *image.NRGBA, x, y int, c color.NRGBA) {
if x < 0 || x >= img.Bounds().Dx() || y < 0 || y >= img.Bounds().Dy() {
return
}
offset := img.PixOffset(x, y)
img.Pix[offset+0] = c.R
img.Pix[offset+1] = c.G