ADPCM: correct calls to adpcm functions in test

This commit is contained in:
Trek H 2019-02-15 13:31:16 +10:30
parent ebdd65ea09
commit 3f8d889ce5
1 changed files with 2 additions and 4 deletions

View File

@ -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)
}