Increased read buffer size.

master
J. David Lee 2019-12-01 22:17:38 +01:00
parent d04d04801f
commit 189cdfa07d
1 changed files with 2 additions and 2 deletions

View File

@ -96,8 +96,8 @@ func Load(path string) (L []float32, R []float32, err error) {
R = make([]float32, md.NumSamples)
written := 0
buf := make([]byte, 4096)
sampleVals := (*[1 << 44]int16)(unsafe.Pointer(&buf[0]))[:2048]
buf := make([]byte, 16384)
sampleVals := (*[1 << 44]int16)(unsafe.Pointer(&buf[0]))[:len(buf)/2]
for {
n, err := r.Read(buf)