[vlc-commits] macosx: VLCClickerManager: use VLCSystemVolume API
Marvin Scholz
git at videolan.org
Fri Aug 14 11:31:48 CEST 2020
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Wed Aug 5 22:03:27 2020 +0200| [53f2f6560786e225d4ea3762e8438bcb21de7325] | committer: Marvin Scholz
macosx: VLCClickerManager: use VLCSystemVolume API
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=53f2f6560786e225d4ea3762e8438bcb21de7325
---
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 cefd370507..838323f5ec 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 @@
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];
}
More information about the vlc-commits
mailing list