Skip to content

Commit

Permalink
streamer/audio: fix nil int
Browse files Browse the repository at this point in the history
  • Loading branch information
Wessie committed May 29, 2024
1 parent 6d8bc01 commit d4cd06c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 34 deletions.
5 changes: 5 additions & 0 deletions streamer/audio/mp3_buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ func (mb *MP3Buffer) Reader() (*MP3Reader, error) {
}

func newMP3Reader(mbr *MemoryReader, length *atomic.Int64) *MP3Reader {
if length == nil {
length = new(atomic.Int64)
// TODO: add an estimated length calculation
}

var frame mp3.Frame

return &MP3Reader{
Expand Down
34 changes: 0 additions & 34 deletions streamer/audio/replaygaintest/main.go

This file was deleted.

0 comments on commit d4cd06c

Please sign in to comment.