MimiTestRun
public struct MimiTestRun : Codable
An individual run of a Hearing Test.
-
Items that can be used as metadata.
- none: No data.
- headphone: Headphone metadata.
- sampleRate: Sample rate used in audio processing.
Declaration
Swift
public enum MetadataItem
-
Create new test run.
Throws
Error if run could not be created.Declaration
Swift
public init(data: Data, noiseData: Data? = nil, metadata: [MetadataItem]) throws
Parameters
data
Test data.
noiseData
Noise data.
metadata
Metadata for the run.
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public init(from decoder: Decoder) throws