Package-level declarations

Types

Link copied to clipboard

What kind of headphone a correction was measured on.

Link copied to clipboard

A catalogue entry and its raw AutoEq curve.

Link copied to clipboard
data class CorrectionProfileSummary(val id: String, val name: String, val source: String, val rig: String, val kind: CorrectionKind, val preampDb: Float, val filterCount: Int, val designRateHz: Int, val peakGainDb: Float)

One search/list result. The source and rig disambiguate model variants.

Link copied to clipboard

The one verdict for the whole signal path.

Link copied to clipboard
data class HeadphoneCorrection(val profileId: String, val extraHeadroomDb: Float = 0.0f, val bassBoostDb: Float = 0.0f, val trebleBoostDb: Float = 0.0f, val maxGainDb: Float? = null, val catalogVersion: String? = null) : ProfileStage

AutoEq headphone correction plus the three AutoEq-style controls.

Link copied to clipboard

A user-owned playback profile. The app persists it, names it and decides which one is active; the library validates and applies it.

Link copied to clipboard

The app-facing Passage Profiles API. It owns the catalogue search, the profile document and the output wrapper; it never stores a profile or downloads data.

Link copied to clipboard
data class ProfileCurve(val frequenciesHz: FloatArray, val magnitudeDb: FloatArray, val outputDb: FloatArray, val effectivePreampDb: Float, val peakGainDb: Float)

A log-spaced correction curve from 20 Hz to 20 kHz.

Link copied to clipboard

Why a Passage Profiles operation failed.

Link copied to clipboard
class ProfileException(val code: ProfileErrorCode, message: String, cause: Throwable? = null) : Exception

A typed Passage Profiles failure. The native layer reports IllegalStateException("usbdac:<code>: <message>"); this class preserves the code so an app can offer the right action (choose another profile, disable the profile for a DSD track, report a build error).

Link copied to clipboard

A PcmOutput that applies a PassageProfile before the target. It keeps the target's frame counters and buffer depth; only sample values change.

Link copied to clipboard

An open native profile processor. Build it off the audio thread.

Link copied to clipboard
interface ProfileStage

One typed stage in a PassageProfile.

Link copied to clipboard
data class ProfileStageInfo(val kind: String, val profileId: String, val name: String, val label: String, val customized: Boolean)

One stage actually applied, for the signal-path display.

Link copied to clipboard
data class ProfileStats(val effectivePreampDb: Float, val peakGainDb: Float, val bassBoostDb: Float, val trebleBoostDb: Float, val requestedMaxGainDb: Float?, val customized: Boolean, val clampedBands: Int, val clippedSamples: Long, val invalidSamples: Long, val addedLatencyFrames: Int, val stages: List<ProfileStageInfo>)

The live counters and settings of a ProfileProcessor.

Link copied to clipboard
data class SignalPath(val verdict: FidelityVerdict, val source: SourceFidelity, val sourceLabel: String?, val stages: List<ProfileStageInfo>, val conversion: String?, val softwareGainDb: Float, val transport: BitPerfectState, val headline: String, val detail: String)

The source, the transforms the library can see, the transport verdict, and the one line an app should show.

Link copied to clipboard

What the app knows about the source. The library cannot inspect a codec.

Properties

Link copied to clipboard
const val BASS_BOOST_FREQUENCY_HZ: Int = 105

AutoEq's bass-boost shelf: 105 Hz, Q 0.70.

Link copied to clipboard
const val BOOST_Q: Float = 0.7f

The Q of both AutoEq boost shelves.

Link copied to clipboard
const val DEFAULT_MAX_GAIN_DB: Float = 6.0f

AutoEq's optimizer default, a suggested starting point for maxGainDb.

Link copied to clipboard

The profile document schema this build understands.

Link copied to clipboard

AutoEq's treble-boost shelf: 10 kHz, Q 0.70.