You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you see I've used format.SampleRate.N(time.Second) rather than format.SampleRate.N(time.Second/10) in the readme to prevent issues with streaming audio due to slow CPU.
Now the logs say following:
go run main.go
0s
4s
5s
6s
First of all it seems that 3 seconds are buffered instead of 1
Secondly it seems that reading time depends on size of buffer which is confusing. Could I read position of speaker maybe instead? I'd expect to see:
gorunmain.go0s1s2s3s
Regardless of the buffer size
The text was updated successfully, but these errors were encountered:
As you see I've used
format.SampleRate.N(time.Second)
rather thanformat.SampleRate.N(time.Second/10)
in the readme to prevent issues with streaming audio due to slow CPU.Now the logs say following:
First of all it seems that 3 seconds are buffered instead of 1
Secondly it seems that reading time depends on size of buffer which is confusing. Could I read position of speaker maybe instead? I'd expect to see:
Regardless of the buffer size
The text was updated successfully, but these errors were encountered: