Skip to content
Snippets Groups Projects
Commit 5738d7a0 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

macosx: introduce constants for volume default and maximum internal to the module

parent 5d8def77
No related branches found
No related tags found
No related merge requests found
......@@ -227,6 +227,9 @@ extern NSString *VLCPlayerVolumeChanged;
*/
extern NSString *VLCPlayerMuteChanged;
extern const CGFloat VLCVolumeMaximum;
extern const CGFloat VLCVolumeDefault;
@interface VLCPlayerController : NSObject
- (instancetype)initWithPlayer:(vlc_player_t *)player;
......
......@@ -71,6 +71,9 @@ NSString *VLCPlayerListOfVideoOutputThreadsChanged = @"VLCPlayerListOfVideoOutpu
NSString *VLCPlayerVolumeChanged = @"VLCPlayerVolumeChanged";
NSString *VLCPlayerMuteChanged = @"VLCPlayerMuteChanged";
const CGFloat VLCVolumeMaximum = 2.;
const CGFloat VLCVolumeDefault = 1.;
@interface VLCPlayerController ()
{
vlc_player_t *_p_player;
......
......@@ -29,9 +29,6 @@
#import "playlist/VLCPlaylistController.h"
#import "playlist/VLCPlayerController.h"
CGFloat VLCVolumeMaximum = 2.;
CGFloat VLCVolumeDefault = 1.;
/*****************************************************************************
* VLCMainWindowControlsBar
*
......
......@@ -25,8 +25,6 @@
#import "VLCFSPanelController.h"
#import <vlc_aout.h>
#import "extensions/NSString+Helpers.h"
#import "main/VLCMain.h"
#import "playlist/VLCPlaylistController.h"
......@@ -150,9 +148,9 @@ static NSString *kAssociatedFullscreenRect = @"VLCFullscreenAssociatedWindowRect
_NS("Adjust the current playback position"));
/* Setup other controls */
[_volumeSlider setMaxValue:2.0];
[_volumeSlider setMaxValue:VLCVolumeMaximum];
[_volumeSlider setFloatValue:_playerController.volume];
[_volumeSlider setDefaultValue:1.0];
[_volumeSlider setDefaultValue:VLCVolumeDefault];
/* Identifier to store the state of the remaining or total time label,
* this is the same identifier as used for the window playback cotrols
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment