Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
43623d35
Commit
43623d35
authored
Aug 31, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oss: attempt to fix the build
(cherry picked from commit 2d681f4c38745132a18fc7ba8163df5aab96346b)
parent
f2138876
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
modules/audio_output/oss.c
modules/audio_output/oss.c
+13
-3
No files found.
modules/audio_output/oss.c
View file @
43623d35
...
...
@@ -51,7 +51,6 @@
#if !defined (__FreeBSD__) && !defined (__FreeBSD_kernel__)
# define USE_SOFTVOL
# include "volume.h"
#endif
#define A52_FRAME_NB 1536
...
...
@@ -61,12 +60,20 @@ struct aout_sys_t
int
fd
;
audio_sample_format_t
format
;
bool
starting
;
#ifndef USE_SOFTVOL
bool
mute
;
uint8_t
level
;
#else
bool
soft_mute
;
float
soft_gain
;
#endif
char
*
device
;
};
#ifdef USE_SOFTVOL
# include "volume.h"
#endif
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
...
...
@@ -354,6 +361,7 @@ static void Stop (audio_output_t *aout)
sys
->
fd
=
-
1
;
}
#ifndef USE_SOFTVOL
static
int
VolumeSet
(
audio_output_t
*
aout
,
float
vol
)
{
aout_sys_t
*
sys
=
aout
->
sys
;
...
...
@@ -395,6 +403,7 @@ static int MuteSet (audio_output_t *aout, bool mute)
aout_MuteReport
(
aout
,
mute
);
return
0
;
}
#endif
static
int
DevicesEnum
(
audio_output_t
*
aout
)
{
...
...
@@ -467,9 +476,10 @@ static int Open (vlc_object_t *obj)
return
VLC_ENOMEM
;
sys
->
fd
=
-
1
;
#ifndef USE_SOFTVOL
sys
->
level
=
100
;
sys
->
mute
=
false
;
#endif
sys
->
device
=
var_InheritString
(
aout
,
"oss-audio-device"
);
aout
->
sys
=
sys
;
...
...
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