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
4977733c
Commit
4977733c
authored
Jul 22, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSS: fix FreeBSD 8 compilation
parent
08569199
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
modules/audio_output/oss.c
modules/audio_output/oss.c
+10
-0
No files found.
modules/audio_output/oss.c
View file @
4977733c
...
...
@@ -38,6 +38,10 @@
# include <sys/soundcard.h>
#endif
#ifndef SNDCTL_DSP_HALT
# define SNDCTL_DSP_HALT SNDCTL_DSP_RESET
#endif
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_fs.h>
...
...
@@ -113,12 +117,14 @@ static int Open (vlc_object_t *obj)
switch
(
fourcc
)
{
#ifdef AFMT_FLOAT
case
VLC_CODEC_F64B
:
case
VLC_CODEC_F64L
:
case
VLC_CODEC_F32B
:
case
VLC_CODEC_F32L
:
format
=
AFMT_FLOAT
;
break
;
#endif
case
VLC_CODEC_S32B
:
format
=
AFMT_S32_BE
;
break
;
...
...
@@ -140,8 +146,10 @@ static int Open (vlc_object_t *obj)
spdif
=
var_InheritBool
(
aout
,
"spdif"
);
if
(
spdif
)
format
=
AFMT_AC3
;
#ifdef AFMT_FLOAT
else
if
(
HAVE_FPU
)
format
=
AFMT_FLOAT
;
#endif
else
format
=
AFMT_S16_NE
;
}
...
...
@@ -162,7 +170,9 @@ static int Open (vlc_object_t *obj)
//case AFMT_S24_LE:
case
AFMT_S32_BE
:
fourcc
=
VLC_CODEC_S32B
;
break
;
case
AFMT_S32_LE
:
fourcc
=
VLC_CODEC_S32L
;
break
;
#ifdef AFMT_FLOAT
case
AFMT_FLOAT
:
fourcc
=
VLC_CODEC_FL32
;
break
;
#endif
case
AFMT_AC3
:
if
(
spdif
)
{
...
...
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