Skip to content

Commit

Permalink
fix spelling mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
gospacedev committed Apr 22, 2023
1 parent 53a62d2 commit 47fd42b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/player.go
Expand Up @@ -35,8 +35,8 @@ import (
"github.com/gizak/termui/v3/widgets"
)

// GenrericDecoder detects different audio formats then decodes it
func GenrericDecoder(name string, f *os.File) (beep.StreamSeekCloser, beep.Format, error) {
// GenericDecoder detects different audio formats then decodes it
func GenericDecoder(name string, f *os.File) (beep.StreamSeekCloser, beep.Format, error) {
switch {
case strings.HasSuffix(name, ".mp3"):
return mp3.Decode(f)
Expand Down Expand Up @@ -64,7 +64,7 @@ func AudioPlayer(file string, name string) {
log.Fatal(err)
}

streamer, format, err := GenrericDecoder(name, f)
streamer, format, err := GenericDecoder(name, f)
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 47fd42b

Please sign in to comment.