Fork channel

Create a new channel as a copy of main.

Rename channel

Rename main to:

Delete channel

Delete main? This cannot be undone.

audio_convert_test.go
package audio

import "testing"

func TestFloat64ToPCM16(t *testing.T) {
	samples := []float64{0.0, 1.0, -1.0, 1.5, -1.5}

	bytes := Float64ToPCM16(samples)
	if len(bytes) != len(samples)*2 {
		t.Fatalf("expected length %d, got %d", len(samples)*2, len(bytes))
	}
}