Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module github.com/gotracker/goaudiofile

go 1.18

require github.com/pkg/errors v0.9.1
go 1.21
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
5 changes: 2 additions & 3 deletions music/tracked/s3m/instheader.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ package s3m

import (
"encoding/binary"
"fmt"
"io"

"github.com/pkg/errors"

"github.com/gotracker/goaudiofile/internal/util"
)

Expand Down Expand Up @@ -88,7 +87,7 @@ func ReadSCRS(r io.Reader) (*SCRS, error) {
case SCRSTypeOPL2Melody, SCRSTypeOPL2BassDrum, SCRSTypeOPL2Snare, SCRSTypeOPL2Tom, SCRSTypeOPL2Cymbal, SCRSTypeOPL2HiHat:
sh.Ancillary = &SCRSAdlibHeader{}
default:
return nil, errors.Errorf("unknown SCRS instrument type %0.2x", sh.Head.Type)
return nil, fmt.Errorf("unknown SCRS instrument type %0.2x", sh.Head.Type)
}

if sh.Ancillary != nil {
Expand Down