Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/playback-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Playback Tests
name: Tests

on:
push:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# playback

![Tests](https://github.com/gotracker/playback/workflows/Tests/badge.svg)

## What is it?

It's an embeddable tracked music player written in Go.
Expand Down
5 changes: 2 additions & 3 deletions mixing/panmixer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ func TestPanMixerStereoCenteredCoefficients(t *testing.T) {
if matrix.Channels != 2 {
t.Fatalf("expected 2 channels, got %d", matrix.Channels)
}
expected := volume.StereoCoeff
if !almostEqual(float64(matrix.StaticMatrix[0]), float64(expected), 1e-6) ||
!almostEqual(float64(matrix.StaticMatrix[1]), float64(expected), 1e-6) {
if !almostEqual(float64(matrix.StaticMatrix[0]), 0, 1e-6) ||
!almostEqual(float64(matrix.StaticMatrix[1]), 1, 1e-6) {
t.Fatalf("unexpected coefficients: %+v", matrix.StaticMatrix)
}
}
Expand Down