Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
3a8876ee
Commit
3a8876ee
authored
May 10, 2005
by
Jérome Decoodt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a bug in playlist + delete updateVolumeSlider (closes #93)
parent
2c31c3a3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
28 deletions
+29
-28
modules/gui/macosx/controls.h
modules/gui/macosx/controls.h
+0
-1
modules/gui/macosx/controls.m
modules/gui/macosx/controls.m
+8
-18
modules/gui/macosx/intf.h
modules/gui/macosx/intf.h
+1
-0
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+16
-7
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+4
-2
No files found.
modules/gui/macosx/controls.h
View file @
3a8876ee
...
...
@@ -52,7 +52,6 @@
-
(
IBAction
)
volumeDown
:(
id
)
sender
;
-
(
IBAction
)
mute
:(
id
)
sender
;
-
(
IBAction
)
volumeSliderUpdated
:(
id
)
sender
;
-
(
void
)
updateVolumeSlider
;
-
(
IBAction
)
windowAction
:(
id
)
sender
;
...
...
modules/gui/macosx/controls.m
View file @
3a8876ee
...
...
@@ -222,7 +222,8 @@
intf_thread_t
*
p_intf
=
VLCIntf
;
val
.
i_int
=
config_GetInt
(
p_intf
,
"key-vol-up"
);
var_Set
(
p_intf
->
p_vlc
,
"key-pressed"
,
val
);
[
self
updateVolumeSlider
];
/* Manage volume status */
[
o_main
manageVolumeSlider
];
}
-
(
IBAction
)
volumeDown
:(
id
)
sender
...
...
@@ -231,7 +232,8 @@
intf_thread_t
*
p_intf
=
VLCIntf
;
val
.
i_int
=
config_GetInt
(
p_intf
,
"key-vol-down"
);
var_Set
(
p_intf
->
p_vlc
,
"key-pressed"
,
val
);
[
self
updateVolumeSlider
];
/* Manage volume status */
[
o_main
manageVolumeSlider
];
}
-
(
IBAction
)
mute
:(
id
)
sender
...
...
@@ -240,7 +242,8 @@
intf_thread_t
*
p_intf
=
VLCIntf
;
val
.
i_int
=
config_GetInt
(
p_intf
,
"key-vol-mute"
);
var_Set
(
p_intf
->
p_vlc
,
"key-pressed"
,
val
);
[
self
updateVolumeSlider
];
/* Manage volume status */
[
o_main
manageVolumeSlider
];
}
-
(
IBAction
)
volumeSliderUpdated
:(
id
)
sender
...
...
@@ -248,21 +251,8 @@
intf_thread_t
*
p_intf
=
VLCIntf
;
audio_volume_t
i_volume
=
(
audio_volume_t
)[
sender
intValue
];
aout_VolumeSet
(
p_intf
,
i_volume
*
AOUT_VOLUME_STEP
);
[
self
updateVolumeSlider
];
}
-
(
void
)
updateVolumeSlider
{
NSString
*
o_text
;
intf_thread_t
*
p_intf
=
VLCIntf
;
audio_volume_t
i_volume
;
aout_VolumeGet
(
p_intf
,
&
i_volume
);
o_text
=
[
NSString
stringWithFormat
:
_NS
(
"Volume: %d"
),
i_volume
*
200
/
AOUT_VOLUME_MAX
];
[
o_main
setScrollField
:
o_text
stopAfter
:
1000000
];
[
o_volumeslider
setFloatValue
:
(
float
)(
i_volume
/
AOUT_VOLUME_STEP
)];
/* Manage volume status */
[
o_main
manageVolumeSlider
];
}
-
(
IBAction
)
windowAction
:(
id
)
sender
...
...
modules/gui/macosx/intf.h
View file @
3a8876ee
...
...
@@ -242,6 +242,7 @@ struct intf_sys_t
NSSize
o_size_with_playlist
;
int
i_lastShownVolume
;
}
+
(
VLCMain
*
)
sharedInstance
;
...
...
modules/gui/macosx/intf.m
View file @
3a8876ee
...
...
@@ -296,7 +296,8 @@ static VLCMain *_o_sharedMainInstance = nil;
o_about
=
[[
VLAboutBox
alloc
]
init
];
o_prefs
=
[[
VLCPrefs
alloc
]
init
];
o_open
=
[[
VLCOpen
alloc
]
init
];
i_lastShownVolume
=
-
1
;
return
_o_sharedMainInstance
;
}
...
...
@@ -965,9 +966,6 @@ static VLCMain *_o_sharedMainInstance = nil;
[
o_timefield
setStringValue
:
o_time
];
}
/* Manage volume status */
[
self
manageVolumeSlider
];
/* Manage Playing status */
var_Get
(
p_input
,
"state"
,
&
val
);
if
(
p_intf
->
p_sys
->
i_play_status
!=
val
.
i_int
)
...
...
@@ -991,6 +989,9 @@ static VLCMain *_o_sharedMainInstance = nil;
if
(
(
i_end_scroll
!=
-
1
)
&&
(
mdate
()
>
i_end_scroll
)
)
[
self
resetScrollField
];
/* Manage volume status */
[
self
manageVolumeSlider
];
[
NSTimer
scheduledTimerWithTimeInterval
:
0
.
3
target:
self
selector
:
@selector
(
manageIntf
:
)
userInfo:
nil
repeats
:
FALSE
];
...
...
@@ -1221,11 +1222,19 @@ static VLCMain *_o_sharedMainInstance = nil;
-
(
void
)
manageVolumeSlider
{
audio_volume_t
i_volume
;
aout_VolumeGet
(
p_intf
,
&
i_volume
);
[
o_volumeslider
setFloatValue
:
(
float
)
i_volume
/
AOUT_VOLUME_STEP
];
[
o_volumeslider
setEnabled
:
TRUE
];
if
(
i_volume
!=
i_lastShownVolume
)
{
NSString
*
o_text
;
o_text
=
[
NSString
stringWithFormat
:
_NS
(
"Volume: %d"
),
i_volume
*
200
/
AOUT_VOLUME_MAX
];
if
(
i_lastShownVolume
!=
-
1
)
[
self
setScrollField
:
o_text
stopAfter
:
1000000
];
[
o_volumeslider
setFloatValue
:
(
float
)
i_volume
/
AOUT_VOLUME_STEP
];
[
o_volumeslider
setEnabled
:
TRUE
];
i_lastShownVolume
=
i_volume
;
}
p_intf
->
p_sys
->
b_mute
=
(
i_volume
==
0
);
}
...
...
modules/gui/macosx/playlist.m
View file @
3a8876ee
...
...
@@ -303,9 +303,11 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
for
(
j
=
0
;
j
<
[
o_array
count
]
-
1
;
j
++
)
{
[
o_outline_view
expandItem
:
[
o_outline_dict
objectForKey
:
id
o_item
;
if
(
(
o_item
=
[
o_outline_dict
objectForKey
:
[
NSString
stringWithFormat
:
@"%p"
,
[[
o_array
objectAtIndex
:
j
]
pointerValue
]]]];
[[
o_array
objectAtIndex
:
j
]
pointerValue
]]]
)
!=
nil
)
[
o_outline_view
expandItem
:
o_item
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment