From f8e984a62a107600bb7277db87b759d9423811c3 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 27 Mar 2016 16:31:28 +0900 Subject: [PATCH] audio/vorbis: Fix error messages --- exp/audio/vorbis/vorbis.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exp/audio/vorbis/vorbis.go b/exp/audio/vorbis/vorbis.go index 57e36fc57..f41d95422 100644 --- a/exp/audio/vorbis/vorbis.go +++ b/exp/audio/vorbis/vorbis.go @@ -33,10 +33,10 @@ func Decode(context *audio.Context, src io.Reader) (*Stream, error) { return nil, err } if channels != 2 { - return nil, errors.New("audio: number of channels must be 2") + return nil, errors.New("vorbis: number of channels must be 2") } if sampleRate != context.SampleRate() { - return nil, fmt.Errorf("audio: sample rate must be %d but %d", context.SampleRate(), sampleRate) + return nil, fmt.Errorf("vorbis: sample rate must be %d but %d", context.SampleRate(), sampleRate) } // TODO: Read all data once so that Seek can be implemented easily. // We should look for a wiser way.