Audio Input/Output Device Status & Master Volume Monitor #21
Notifications
Due Date
No due date set.
Depends on
Reference: gronod/MacMonitor#21
Reference in New Issue
Block a user
Resolved in Milestone 3. Implemented
MMAudioTelemetryProvider.h/.menumerating CoreAudio input/output devices, nominal sample rates, master volume, and mute status. Verified with unit tests. Merged intodevelop.Technical Implementation Plan & Code Solution
1. CoreAudio Hardware Abstraction Layer (HAL)
CoreAudio HAL interfaces directly with system audio endpoints:
kAudioHardwarePropertyDefaultOutputDevicekAudioHardwarePropertyDefaultInputDevicekAudioDevicePropertyNominalSampleRatekAudioDevicePropertyVolumeScalarkAudioDevicePropertyMute2. Objective-C Provider (
MMAudioProvider.m)3. Swift UI Integration
4. Zero-Latency Property Observers
AudioObjectAddPropertyListenercan be wired up to listen for volume wheel / headphone plug transitions, updating the UI instantaneously without polling.