forked from AudioKit/AudioKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAKDecimatorTests.swift
39 lines (31 loc) · 945 Bytes
/
AKDecimatorTests.swift
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// AKDecimatorTests.swift
// AudioKitTestSuite
//
// Created by Aurelius Prochazka, revision history on GitHub.
// Copyright © 2018 AudioKit. All rights reserved.
//
import AudioKit
import XCTest
class AKDecimatorTests: AKTestCase {
func testDecimation() {
output = AKDecimator(input, decimation: 0.75)
AKTestMD5("a7f1536d43cc645f531de000197263e0")
}
func testDefault() {
output = AKDecimator(input)
AKTestMD5("313610eb609ce58855424ad3bdb221e5")
}
func testMix() {
output = AKDecimator(input, mix: 0.5)
AKTestMD5("9580c7f80056bbbd517b16dd045f6677")
}
func testParameters() {
output = AKDecimator(input, decimation: 0.75, rounding: 0.5, mix: 0.5)
AKTestMD5("23410862de9bc64b854d3a30441adfe5")
}
func testRounding() {
output = AKDecimator(input, rounding: 0.5)
AKTestMD5("7f3c4b7ab3e039f2d81ac7fff5642d9a")
}
}