File tree Expand file tree Collapse file tree
Tests/SwiftAudioFileConverterTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,20 +2,21 @@ import Foundation
22import Testing
33@testable import SwiftAudioFileConverter
44
5+ /// Not a unit test. A simple test harness to perform a local file conversion.
56@available ( macOS 13 . 0 , * )
67@available ( iOS, unavailable)
78@available ( tvOS, unavailable)
89@available ( watchOS, unavailable)
910@available ( visionOS, unavailable)
10- @Test func example ( ) async throws {
11+ @Test func manualConversion ( ) async throws {
1112 let settings = try AudioFileSettings (
1213 sampleRate: . kHz48,
1314 bitDepth: . float32,
1415 fileFormat: . flac,
1516 channelFormat: . stereo)
1617
17- let inputURL = URL . desktopDirectory. appending ( path: " dipper .wav" )
18- let outputURL = URL . desktopDirectory. appending ( path: " dipper .flac" )
18+ let inputURL = URL . desktopDirectory. appending ( path: " test .wav" )
19+ let outputURL = URL . desktopDirectory. appending ( path: " test .flac" )
1920
2021 try await SwiftAudioFileConverter . convert (
2122 from: inputURL,
You can’t perform that action at this time.
0 commit comments