Increased read buffer size.
parent
d04d04801f
commit
189cdfa07d
|
@ -96,8 +96,8 @@ func Load(path string) (L []float32, R []float32, err error) {
|
||||||
R = make([]float32, md.NumSamples)
|
R = make([]float32, md.NumSamples)
|
||||||
|
|
||||||
written := 0
|
written := 0
|
||||||
buf := make([]byte, 4096)
|
buf := make([]byte, 16384)
|
||||||
sampleVals := (*[1 << 44]int16)(unsafe.Pointer(&buf[0]))[:2048]
|
sampleVals := (*[1 << 44]int16)(unsafe.Pointer(&buf[0]))[:len(buf)/2]
|
||||||
|
|
||||||
for {
|
for {
|
||||||
n, err := r.Read(buf)
|
n, err := r.Read(buf)
|
||||||
|
|
Reference in New Issue