aboutsummaryrefslogtreecommitdiff
path: root/wav/wav_test.go
blob: 5d6bef7380b6c11418726d964ff9688d032200f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package wav

import (
	"fmt"
	"testing"
)

func TestLoad(t *testing.T) {
	ch, err := Load("../downloader/out.wav")
	if err != nil {
		t.Fatal(err)
	}

	ct := 0

	for _ = range ch {
		//fmt.Println(i)
		ct++
		if ct%10000 == 0 {
			fmt.Println(ct)
		}
	}

	fmt.Println("COUNT: ", ct)
}