+@testable import AMCoreAudio
 import XCTest
-@testable import AMCoreAudio
 
 final class AudioDeviceTests: XCTestCase {
     let defaultOutputDevice = AudioDevice.defaultOutputDevice()

        XCTAssertNotNil(device.streams(direction: .recording))
    }

    // MARK: - Private Functions

    private func GetDevice(file: StaticString = #file, line: UInt = #line) throws -> AudioDevice {

        device.setVirtualMasterVolume(0.5, direction: .playback)
        device.setVirtualMasterVolume(0.5, direction: .recording)
    }

    private func wait(for interval: TimeInterval) {
        let delayExpectation = XCTestExpectation(description: "delayExpectation")
        DispatchQueue.main.asyncAfter(deadline: .now() + interval) {
            delayExpectation.fulfill()
        }
        wait(for: [delayExpectation], timeout: interval)
    }
}
