Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
80fcc80f
Commit
80fcc80f
authored
Mar 16, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/audio_output/waveout.c: change global volume on WinCE.
parent
a1ee749f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
modules/audio_output/waveout.c
modules/audio_output/waveout.c
+12
-4
No files found.
modules/audio_output/waveout.c
View file @
80fcc80f
...
@@ -791,10 +791,14 @@ static int VolumeInfos( aout_instance_t * p_aout, audio_volume_t * pi_soft )
...
@@ -791,10 +791,14 @@ static int VolumeInfos( aout_instance_t * p_aout, audio_volume_t * pi_soft )
static
int
VolumeGet
(
aout_instance_t
*
p_aout
,
audio_volume_t
*
pi_volume
)
static
int
VolumeGet
(
aout_instance_t
*
p_aout
,
audio_volume_t
*
pi_volume
)
{
{
aout_sys_t
*
p_sys
=
p_aout
->
output
.
p_sys
;
DWORD
i_waveout_vol
;
DWORD
i_waveout_vol
;
waveOutGetVolume
(
p_sys
->
h_waveout
,
&
i_waveout_vol
);
#ifdef UNDER_CE
waveOutGetVolume
(
0
,
&
i_waveout_vol
);
#else
waveOutGetVolume
(
p_aout
->
output
.
p_sys
->
h_waveout
,
&
i_waveout_vol
);
#endif
i_waveout_vol
&=
0xFFFF
;
i_waveout_vol
&=
0xFFFF
;
*
pi_volume
=
p_aout
->
output
.
i_volume
=
*
pi_volume
=
p_aout
->
output
.
i_volume
=
i_waveout_vol
*
AOUT_VOLUME_MAX
/
2
/
0xFFFF
;
i_waveout_vol
*
AOUT_VOLUME_MAX
/
2
/
0xFFFF
;
...
@@ -803,11 +807,15 @@ static int VolumeGet( aout_instance_t * p_aout, audio_volume_t * pi_volume )
...
@@ -803,11 +807,15 @@ static int VolumeGet( aout_instance_t * p_aout, audio_volume_t * pi_volume )
static
int
VolumeSet
(
aout_instance_t
*
p_aout
,
audio_volume_t
i_volume
)
static
int
VolumeSet
(
aout_instance_t
*
p_aout
,
audio_volume_t
i_volume
)
{
{
aout_sys_t
*
p_sys
=
p_aout
->
output
.
p_sys
;
unsigned
long
i_waveout_vol
=
i_volume
*
0xFFFF
*
2
/
AOUT_VOLUME_MAX
;
unsigned
long
i_waveout_vol
=
i_volume
*
0xFFFF
*
2
/
AOUT_VOLUME_MAX
;
i_waveout_vol
|=
(
i_waveout_vol
<<
16
);
i_waveout_vol
|=
(
i_waveout_vol
<<
16
);
waveOutSetVolume
(
p_sys
->
h_waveout
,
i_waveout_vol
);
#ifdef UNDER_CE
waveOutSetVolume
(
0
,
i_waveout_vol
);
#else
waveOutSetVolume
(
p_aout
->
output
.
p_sys
->
h_waveout
,
i_waveout_vol
);
#endif
p_aout
->
output
.
i_volume
=
i_volume
;
p_aout
->
output
.
i_volume
=
i_volume
;
return
0
;
return
0
;
}
}
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