Skip to content

Commit

Permalink
chore: go mod tidy
Browse files Browse the repository at this point in the history
streamer/audio: remove unused constants
  • Loading branch information
Wessie committed May 31, 2024
1 parent ada4829 commit 630424d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ require (
github.com/google/subcommands v1.2.0
github.com/gorilla/csrf v1.7.2
github.com/jmoiron/sqlx v1.3.5
github.com/justincormack/go-memfd v0.0.0-20170219213707-6e4af0518993
github.com/jxskiss/base62 v1.1.0
github.com/leanovate/gopter v0.2.10
github.com/lrstanley/girc v0.0.0-20240317214256-a4a3d96369cb
Expand Down Expand Up @@ -73,7 +74,6 @@ require (
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/securecookie v1.1.2 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 // indirect
github.com/justincormack/go-memfd v0.0.0-20170219213707-6e4af0518993 // indirect
github.com/klauspost/compress v1.17.7 // indirect
github.com/lufia/plan9stats v0.0.0-20240226150601-1dcf7310316a // indirect
github.com/magiconair/properties v1.8.7 // indirect
Expand Down
3 changes: 0 additions & 3 deletions streamer/audio/pcm_buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import (
"time"
)

const pcmBootstrapSize = 1024 * 1024
const pcmReadFromSize = 1024 * 16

//const pcmReadFromSize = (44100 * 2 * 2) * 15 // about 15-seconds of data

// PCMLength calculates the expected duration of a file
Expand Down
2 changes: 2 additions & 0 deletions streamer/audio/pcm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (
"github.com/stretchr/testify/require"
)

const pcmBootstrapSize = 1024 * 1024

func TestPCMBuffer(t *testing.T) {
var data = make([]byte, pcmBootstrapSize*2)
n, err := rand.Read(data)
Expand Down

0 comments on commit 630424d

Please sign in to comment.