Skip to content

Commit 3b529f6

Browse files
committed
Fix sample rate for tests to 44100
These md5's were recorded at 44100, but Settings default sample rate changed to 48000
1 parent f364019 commit 3b529f6

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Tests/AudioKitEXTests/DryWetMixerTests.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ class DryWetMixerTests: XCTestCase {
99
let input1 = PlaygroundOscillator(waveform: Table(.triangle))
1010
let input2 = PlaygroundOscillator(waveform: Table(.triangle), frequency: 1280)
1111

12+
override func setUp() {
13+
super.setUp()
14+
Settings.sampleRate = 44100
15+
}
16+
1217
func testDefault() {
1318
let engine = AudioEngine()
1419
let mixer = DryWetMixer(dry: input1, wet: input2)

Tests/AudioKitEXTests/FaderTests.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ import XCTest
66

77
class FaderTests: XCTestCase {
88

9+
override func setUp() {
10+
super.setUp()
11+
Settings.sampleRate = 44100
12+
}
13+
914
func testDefault() {
1015
let engine = AudioEngine()
1116
let url = Bundle.module.url(forResource: "12345", withExtension: "wav", subdirectory: "TestResources")!

0 commit comments

Comments
 (0)