From 80e6d4a175048a298023c1d1c1108e437ee4bbce Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 18 Jun 2017 17:24:33 +0900 Subject: [PATCH] audio/mp3: Rename sideInfo to sideInfoBytes --- audio/mp3/sideinfo.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/audio/mp3/sideinfo.go b/audio/mp3/sideinfo.go index 4b4cabade..2a497e764 100644 --- a/audio/mp3/sideinfo.go +++ b/audio/mp3/sideinfo.go @@ -122,13 +122,13 @@ func (f *frame) readAudioL3() error { return nil } -// A sideInfo is a bit reservoir for side info -type sideInfo struct { +// A sideInfoBytes is a bit reservoir for side info +type sideInfoBytes struct { vec []int idx int // Index into the current byte(0-7) } -func getSideinfo(size int) (*sideInfo, error) { +func getSideinfo(size int) (*sideInfoBytes, error) { buf := make([]int, size) n := 0 var err error @@ -144,13 +144,13 @@ func getSideinfo(size int) (*sideInfo, error) { return nil, fmt.Errorf("mp3: couldn't read sideinfo %d bytes at pos %d: %v", size, getFilepos(), err) } - s := &sideInfo{ + s := &sideInfoBytes{ vec: buf[:n], } return s, nil } -func (s *sideInfo) getSideBits(num int) int { +func (s *sideInfoBytes) getSideBits(num int) int { // Form a word of the next four bytes // TODO: endianness? b := make([]int, 4)