Skip to content

Commit 70193ee

Browse files
authored
Merge pull request #30 from emurray2/main
Adjust md5s for updated sample rate in AudioKit
2 parents f6cee06 + dddff27 commit 70193ee

4 files changed

Lines changed: 11 additions & 99 deletions

File tree

Tests/DunneAudioKitTests/GenericNodeTests.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ class GenericNodeTests: XCTestCase {
5555
}
5656

5757
func testEffects() {
58-
nodeParameterTest(md5: "b09c41cdef96fb4cfe89c34c5262e9d2", factory: { input in Flanger(input) })
59-
nodeParameterTest(md5: "7006860de2e4a726fd53c7f583f44c75", factory: { input in StereoDelay(input) })
58+
nodeParameterTest(md5: "2e7735fd2751c87661351b16f0c247d8", factory: { input in Flanger(input) })
59+
nodeParameterTest(md5: "481005e568c7c0a0763044451f1ba588", factory: { input in StereoDelay(input) })
60+
nodeParameterTest(md5: "c5729e47c78ce86a7480eaa0ca0b10c0", factory: { input in TransientShaper(input) })
6061
}
6162
}

Tests/DunneAudioKitTests/SamplerTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class SamplerTests: XCTestCase {
1313
let sampleURL = Bundle.module.url(forResource: "TestResources/12345", withExtension: "wav")!
1414
let file = try! AVAudioFile(forReading: sampleURL)
1515
let sampler = Sampler()
16-
let data = SamplerData(sampleDescriptor: SampleDescriptor(noteNumber: 64, noteFrequency: 440, minimumNoteNumber: 0, maximumNoteNumber: 127, minimumVelocity: 0, maximumVelocity: 127, isLooping: false, loopStartPoint: 0, loopEndPoint: 1000.0, startPoint: 0.0, endPoint: 44100.0 * 5.0), file: file)
16+
let data = SamplerData(sampleDescriptor: SampleDescriptor(noteNumber: 64, noteFrequency: 440, minimumNoteNumber: 0, maximumNoteNumber: 127, minimumVelocity: 0, maximumVelocity: 127, isLooping: false, loopStartPoint: 0, loopEndPoint: 1000.0, startPoint: 0.0, endPoint: Float(Settings.sampleRate * 5.0)), file: file)
1717
data.buildKeyMap()
1818
sampler.update(data: data)
1919
sampler.masterVolume = 0.1
@@ -46,13 +46,13 @@ class SamplerTests: XCTestCase {
4646
sampler.load(avAudioFile: file)
4747
sampler.masterVolume = 1
4848
engine.output = sampler
49-
let audio = engine.startTest(totalDuration: 8.0)
49+
let audio = engine.startTest(totalDuration: 9.0)
5050
audio.append(engine.render(duration: 1.0)) // run test for a second before setting parameters
5151
sampler.attackDuration = 1.0
5252
sampler.load(avAudioFile: file)
5353
audio.append(engine.render(duration: 1.0)) // run test to give time to load
5454
sampler.play(noteNumber: 65, velocity: 127)
55-
audio.append(engine.render(duration: 6.0))
55+
audio.append(engine.render(duration: 7.0))
5656
sampler.stop(noteNumber: 65)
5757
testMD5(audio)
5858
}

Tests/DunneAudioKitTests/TransientShaperTests.swift

Lines changed: 0 additions & 84 deletions
This file was deleted.

Tests/DunneAudioKitTests/ValidatedMD5s.swift

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,9 @@ extension XCTestCase {
1111
}
1212

1313
let validatedMD5s: [String: String] = [
14-
"-[SamplerTests testSampler]": "8739229f6bc52fa5db3cc2afe85ee580",
15-
"-[SamplerTests testSamplerAttackVolumeEnvelope]": "bf00177ac48148fa4f780e5e364e84e2",
16-
"-[SynthTests testChord]": "670c95beba121ff85150eb12497f3652",
17-
"-[SynthTests testMonophonicPlayback]": "625554cfe7cc840083df9931d47490a6",
18-
"-[SynthTests testParameterInitialization]": "7bd35b742ceff0ba77238d7da2ef046d",
19-
"-[TransientShaperTests testAttackAmount]": "481068b77fc73b349315f2327fb84318",
20-
"-[TransientShaperTests testDefault]": "cea9fc1deb7a77fe47a071d7aaf411d3",
21-
"-[TransientShaperTests testOutputAmount]": "e84963aeedd6268dd648dd6a862fb76a",
22-
"-[TransientShaperTests testplayerAmount]": "f70c4ba579921129c86b9a6abb0cb52e",
23-
"-[TransientShaperTests testReleaseAmount]": "accb7a919f3c63e4dbec41c0e7ef88db",
14+
"-[SamplerTests testSampler]": "764e9a29c81659ea19b942afead19c1e",
15+
"-[SamplerTests testSamplerAttackVolumeEnvelope]": "2b10675e27c588c5fc7aa70ec1b299c5",
16+
"-[SynthTests testChord]": "4f1199e90b38cf7ede595c62600bb307",
17+
"-[SynthTests testMonophonicPlayback]": "2851284c61e62af0ade1e0ac5ee786c9",
18+
"-[SynthTests testParameterInitialization]": "0030b568eff9dcdbd5b532a5de1e32dd"
2419
]

0 commit comments

Comments
 (0)