From 14f8e7d29ca22be5382c144e72a4a3c9b9168f2e Mon Sep 17 00:00:00 2001 From: Trek H Date: Fri, 15 Feb 2019 13:31:16 +1030 Subject: [PATCH] ADPCM: correct calls to adpcm functions in test --- stream/adpcm/adpcm_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/stream/adpcm/adpcm_test.go b/stream/adpcm/adpcm_test.go index c420eee6..a2b82956 100644 --- a/stream/adpcm/adpcm_test.go +++ b/stream/adpcm/adpcm_test.go @@ -32,8 +32,6 @@ import ( "io/ioutil" "log" "testing" - - "bitbucket.org/ausocean/av/stream/adpcm" ) // TestEncodeBlock will read PCM data, encode it in blocks and generate ADPCM @@ -52,7 +50,7 @@ func TestEncodeBlock(t *testing.T) { comp := make([]byte, 0, outBSize*numBlocks) for i := 0; i < numBlocks; i++ { block := pcm[inBSize*i : inBSize*(i+1)] - encBlock, err := adpcm.EncodeBlock(block) + encBlock, err := EncodeBlock(block) if err != nil { log.Fatal(err) } @@ -86,7 +84,7 @@ func TestDecodeBlock(t *testing.T) { decoded := make([]byte, 0, outBSize*numBlocks) for i := 0; i < numBlocks; i++ { block := comp[inBSize*i : inBSize*(i+1)] - decBlock, err := adpcm.DecodeBlock(block) + decBlock, err := DecodeBlock(block) if err != nil { log.Fatal(err) }