[vlc-devel] [PATCH 2/3] macosx: VLCClickerManager: use VLCSystemVolume API
Marvin Scholz
epirat07 at gmail.com
Wed Aug 5 22:07:40 CEST 2020
---
modules/gui/macosx/os-integration/VLCClickerManager.m | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/gui/macosx/os-integration/VLCClickerManager.m b/modules/gui/macosx/os-integration/VLCClickerManager.m
index cefd3705077..838323f5ecb 100644
--- a/modules/gui/macosx/os-integration/VLCClickerManager.m
+++ b/modules/gui/macosx/os-integration/VLCClickerManager.m
@@ -22,13 +22,13 @@
#import "VLCClickerManager.h"
-#import "extensions/NSSound+VLCAdditions.h"
#import "imported/SPMediaKeyTap/SPMediaKeyTap.h"
#import "imported/AppleRemote/AppleRemote.h"
#import "main/VLCMain.h"
#import "playlist/VLCPlaylistController.h"
#import "playlist/VLCPlaylistModel.h"
#import "playlist/VLCPlayerController.h"
+#import "os-integration/VLCSystemVolume.h"
@interface VLCClickerManager()
{
@@ -264,14 +264,14 @@ - (void)appleRemoteButton:(AppleRemoteEventIdentifier)buttonIdentifier
break;
case kRemoteButtonVolume_Plus:
if (config_GetInt("macosx-appleremote-sysvol")) {
- [NSSound increaseSystemVolume];
+ [VLCSystemVolume changeSystemVolume:kVLCSystemVolumeIncreaseDefault];
} else {
[_playerController incrementVolume];
}
break;
case kRemoteButtonVolume_Minus:
if (config_GetInt("macosx-appleremote-sysvol")) {
- [NSSound decreaseSystemVolume];
+ [VLCSystemVolume changeSystemVolume:kVLCSystemVolumeDecreaseDefault];
} else {
[_playerController decrementVolume];
}
--
2.24.3 (Apple Git-128)
More information about the vlc-devel
mailing list