Skip to content

Commit

Permalink
audio: refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Jul 30, 2023
1 parent b580d0f commit 9b05d9e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 47 deletions.
2 changes: 1 addition & 1 deletion audio/audio.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (c *Context) IsReady() bool {
// problematic when a user tries to play audio after the context is ready.
// Play a dummy player to avoid the blocking (#969).
// Use a long enough buffer so that writing doesn't finish immediately (#970).
p := NewPlayerFromBytes(c, make([]byte, bufferSize()*2))
p := NewPlayerFromBytes(c, make([]byte, 16384))
p.Play()
}()
})
Expand Down
23 changes: 0 additions & 23 deletions audio/buffersize_mobile.go

This file was deleted.

23 changes: 0 additions & 23 deletions audio/buffersize_notmobile.go

This file was deleted.

0 comments on commit 9b05d9e

Please sign in to comment.