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
00ae211b
Commit
00ae211b
authored
Jun 27, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "DirectX: 10L fix compilation of backports"
This reverts commit
7be07b1a
.
parent
df8462b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/audio_output/directx.c
modules/audio_output/directx.c
+2
-1
No files found.
modules/audio_output/directx.c
View file @
00ae211b
...
...
@@ -287,7 +287,7 @@ static int OpenAudio( vlc_object_t *p_this )
/* Calculate the frame size in bytes */
aout_FormatPrepare
(
&
p_aout
->
format
);
aout_PacketInit
(
p_aout
,
&
p_aout
->
sys
->
packet
,
FRAME_SIZE
);
aout_VolumeHardInit
(
p_aout
,
VolumeSet
);
aout_VolumeHardInit
(
p_aout
,
VolumeSet
,
true
);
}
/* Now we need to setup our DirectSound play notification structure */
...
...
@@ -588,6 +588,7 @@ static int VolumeSet( audio_output_t *p_aout, float vol, bool mute )
LONG
mb
=
lroundf
(
2000
.
f
*
log10f
(
vol
));
/* Clamp to allowed DirectSound range */
static_assert
(
DSBVOLUME_MIN
<
DSBVOLUME_MAX
,
"DSBVOLUME_* confused"
);
if
(
mb
>=
DSBVOLUME_MAX
)
mb
=
DSBVOLUME_MAX
;
if
(
mb
<=
DSBVOLUME_MIN
)
...
...
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