github.com/egonelbre/exp@v0.0.0-20240430123955-ed1d3aa93911/audio/benchmark/buffer.go (about) 1 package benchmark_audio 2 3 type ( 4 // Buffer represents an interleaved block of samples 5 Buffer struct { 6 ChannelCount byte 7 Data []float32 8 } 9 10 // Buffer_Ch1 represents mono sound samples 11 Buffer_Ch1 [][1]float32 12 13 // Buffer_Ch2 represents stereo sound samples 14 Buffer_Ch2 [][2]float32 15 16 // Buffer_Ch5 represents surround sound samples 17 Buffer_Ch5 [][5]float32 18 19 // Buffer_Ch7 represents surround sound samples 20 Buffer_Ch7 [][7]float32 21 )