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
c45dcb73
Commit
c45dcb73
authored
Jul 30, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/audio_output/waveout.c: get rid of roundf() which isn't supported on WinCE.
parent
ecac4600
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
modules/audio_output/waveout.c
modules/audio_output/waveout.c
+1
-5
No files found.
modules/audio_output/waveout.c
View file @
c45dcb73
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
*****************************************************************************/
*****************************************************************************/
#include <string.h>
/* strerror() */
#include <string.h>
/* strerror() */
#include <stdlib.h>
/* calloc(), malloc(), free() */
#include <stdlib.h>
/* calloc(), malloc(), free() */
#include <math.h>
/* roundf() */
#include <vlc/vlc.h>
#include <vlc/vlc.h>
#include <vlc/aout.h>
#include <vlc/aout.h>
...
@@ -801,11 +800,8 @@ static int VolumeGet( aout_instance_t * p_aout, audio_volume_t * pi_volume )
...
@@ -801,11 +800,8 @@ static int VolumeGet( aout_instance_t * p_aout, audio_volume_t * pi_volume )
#endif
#endif
i_waveout_vol
&=
0xFFFF
;
i_waveout_vol
&=
0xFFFF
;
/* Force float computation, otherwise VolumeGet does not return the value
* which was set with VolumeSet, because of rounding issues */
*
pi_volume
=
p_aout
->
output
.
i_volume
=
*
pi_volume
=
p_aout
->
output
.
i_volume
=
(
audio_volume_t
)
roundf
((
float
)
i_waveout_vol
*
AOUT_VOLUME_MAX
(
i_waveout_vol
*
AOUT_VOLUME_MAX
+
0xFFFF
/*rounding*/
)
/
2
/
0xFFFF
;
/
2
.
0
/
0xFFFF
);
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