Finally tracked down and fixed the problems with buffers.
This commit is contained in:
@@ -36,6 +36,13 @@ func TestAudioBufferCount(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestDefaultAudioBufferCountPreservesStablePlaybackCapacity(t *testing.T) {
|
||||
config := NewConfig()
|
||||
if got := config.AudioBufferCount(); got != 64 {
|
||||
t.Fatalf("default AudioBufferCount() = %d, want 64", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestAudioListenerStreamBufferingAndCleanup(t *testing.T) {
|
||||
var listeners AudioListeners
|
||||
events := make(chan *AudioStreamEvent, 1)
|
||||
|
||||
@@ -40,7 +40,7 @@ const AudioMinimumBufferCount = 3
|
||||
// NewConfig returns a new Config struct with default values set.
|
||||
func NewConfig() *Config {
|
||||
return &Config{
|
||||
Buffers: 8,
|
||||
Buffers: 64,
|
||||
AudioInterval: AudioDefaultInterval,
|
||||
AudioDataBytes: AudioDefaultDataBytes,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user