mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +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)
|
emptyBytes := make([]byte, 4*bufferSize)
|
||||||
|
|
||||||
for _, source := range sources {
|
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)
|
buffers := openal.NewBuffers(bufferNum)
|
||||||
for _, buffer := range buffers {
|
for _, buffer := range buffers {
|
||||||
buffer.SetData(openal.FormatStereo16, emptyBytes, SampleRate)
|
buffer.SetData(openal.FormatStereo16, emptyBytes, SampleRate)
|
||||||
|
Loading…
Reference in New Issue
Block a user