diff --git a/build/entitlements.mac.plist b/build/entitlements.mac.plist index 6957ee0..8bdb11e 100644 --- a/build/entitlements.mac.plist +++ b/build/entitlements.mac.plist @@ -16,7 +16,5 @@ com.apple.security.files.downloads.read-write - com.apple.security.device.microphone - diff --git a/package.json b/package.json index 36f9156..8caa6e7 100644 --- a/package.json +++ b/package.json @@ -148,7 +148,6 @@ "entitlements": "build/entitlements.mac.plist", "entitlementsInherit": "build/entitlements.mac.plist", "extendInfo": { - "NSMicrophoneUsageDescription": "AlgerMusicPlayer needs access to the microphone for audio visualization.", "NSCameraUsageDescription": "Application requests access to the device's camera.", "NSDocumentsFolderUsageDescription": "Application requests access to the user's Documents folder.", "NSDownloadsFolderUsageDescription": "Application requests access to the user's Downloads folder." diff --git a/src/renderer/services/audioService.ts b/src/renderer/services/audioService.ts index 141fc59..af00dae 100644 --- a/src/renderer/services/audioService.ts +++ b/src/renderer/services/audioService.ts @@ -605,13 +605,6 @@ class AudioService { public async getAudioOutputDevices(): Promise { try { - try { - const stream = await navigator.mediaDevices.getUserMedia({ audio: true }); - stream.getTracks().forEach((track) => track.stop()); - } catch { - // Continue even if permission denied - } - const devices = await navigator.mediaDevices.enumerateDevices(); const audioOutputs = devices.filter((d) => d.kind === 'audiooutput');