Skip to content
This repository was archived by the owner on May 3, 2021. It is now read-only.
This repository was archived by the owner on May 3, 2021. It is now read-only.

panic: EOF #10

@xyproto

Description

@xyproto

Hi,

I'm using the latest commit of waveform: 6b28917
and Go 1.11 on 64-bit Arch Linux.

After building waveform and copying test.wav to the cmd/waveform directory:

$ ls -al
.rw-r----- 1,0k afr 14 sep.  11:36 README.md
.rw-r-----  47M afr 14 sep.  11:40 test.wav
.rwxr-x--- 3,0M afr 14 sep.  11:36 waveform*
.rw-r----- 4,8k afr 14 sep.  11:36 waveform.go
.rw-r-----    0 afr 14 sep.  11:40 waveform.png
$ file test.wav
test.wav: RIFF (little-endian) data, WAVE audio

When attempting to create a .png image, I get an error message:

$ cat test.wav | ./waveform -x 5 -y 2 > waveform.png
panic: EOF

goroutine 1 [running]:
main.main()
        /home/afr/clones/waveform/cmd/waveform/waveform.go:127 +0xc9b

I tried with several different .wav files.

Line 127 in waveform.go is here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions