mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
audio: Change the number of buffers
This commit is contained in:
parent
205c6f1462
commit
6a0c5dfb03
@ -62,7 +62,9 @@ func initialize() {
|
||||
emptyBytes := make([]byte, 4*bufferSize)
|
||||
|
||||
for _, source := range sources {
|
||||
const bufferNum = 4
|
||||
// 3 is the least number?
|
||||
// http://stackoverflow.com/questions/14932004/play-sound-with-openalstream
|
||||
const bufferNum = 3
|
||||
buffers := openal.NewBuffers(bufferNum)
|
||||
for _, buffer := range buffers {
|
||||
buffer.SetData(openal.FormatStereo16, emptyBytes, SampleRate)
|
||||
|
Loading…
Reference in New Issue
Block a user