fixes for Swift 6 and threading concerns
This commit is contained in:
@@ -29,6 +29,7 @@ private func runMagnitudeHops(
|
||||
|
||||
// MARK: - Construction
|
||||
|
||||
@MainActor
|
||||
@Suite("OnsetDetector init validation")
|
||||
struct OnsetDetectorInitTests {
|
||||
|
||||
@@ -61,6 +62,7 @@ struct OnsetDetectorInitTests {
|
||||
|
||||
// MARK: - Spectral flux ODF
|
||||
|
||||
@MainActor
|
||||
@Suite("OnsetDetector .spectralFlux")
|
||||
struct OnsetDetectorFluxTests {
|
||||
|
||||
@@ -185,6 +187,7 @@ struct OnsetDetectorFluxTests {
|
||||
|
||||
// MARK: - Complex-domain ODF
|
||||
|
||||
@MainActor
|
||||
@Suite("OnsetDetector .complexDomain")
|
||||
struct OnsetDetectorComplexDomainTests {
|
||||
|
||||
@@ -266,6 +269,7 @@ struct OnsetDetectorComplexDomainTests {
|
||||
|
||||
// MARK: - .Control output
|
||||
|
||||
@MainActor
|
||||
@Suite("OnsetDetector.Control output")
|
||||
struct OnsetDetectorControlTests {
|
||||
|
||||
@@ -361,6 +365,7 @@ struct OnsetDetectorControlTests {
|
||||
|
||||
// MARK: - End-to-end: real SpectralChain.Audio + impulse input
|
||||
|
||||
@MainActor
|
||||
@Suite("OnsetDetector end-to-end via SpectralChain.Audio")
|
||||
struct OnsetDetectorEndToEndTests {
|
||||
|
||||
@@ -422,6 +427,7 @@ struct OnsetDetectorEndToEndTests {
|
||||
|
||||
// MARK: - Registration precondition
|
||||
|
||||
@MainActor
|
||||
@Suite("OnsetDetector.Control registration check")
|
||||
struct OnsetDetectorRegistrationTests {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user