Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
fd0afca1
Commit
fd0afca1
authored
Jan 07, 2003
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New "spdif" setting, allowing to permanently disable S/PDIF detection.
parent
02fff59c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
modules/audio_output/oss.c
modules/audio_output/oss.c
+11
-3
No files found.
modules/audio_output/oss.c
View file @
fd0afca1
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* oss.c : OSS /dev/dsp module for vlc
* oss.c : OSS /dev/dsp module for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000-2002 VideoLAN
* Copyright (C) 2000-2002 VideoLAN
* $Id: oss.c,v 1.4
1 2002/12/23 13:58:46
massiot Exp $
* $Id: oss.c,v 1.4
2 2003/01/07 14:58:33
massiot Exp $
*
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
* Samuel Hocevar <sam@zoy.org>
...
@@ -91,11 +91,18 @@ static mtime_t BufferDuration( aout_instance_t * p_aout );
...
@@ -91,11 +91,18 @@ static mtime_t BufferDuration( aout_instance_t * p_aout );
"are completely filled (the sound gets heavily hashed). If you have one " \
"are completely filled (the sound gets heavily hashed). If you have one " \
"of these drivers, then you need to enable this option." )
"of these drivers, then you need to enable this option." )
#define SPDIF_TEXT N_("Try to use S/PDIF output")
#define SPDIF_LONGTEXT N_( \
"Sometimes we attempt to use the S/PDIF output, even if nothing is " \
"connected to it. Un-checking this option disables this behaviour, " \
"and permanently selects analog PCM output." )
vlc_module_begin
();
vlc_module_begin
();
add_category_hint
(
N_
(
"OSS"
),
NULL
);
add_category_hint
(
N_
(
"OSS"
),
NULL
);
add_file
(
"dspdev"
,
"/dev/dsp"
,
aout_FindAndRestart
,
add_file
(
"dspdev"
,
"/dev/dsp"
,
aout_FindAndRestart
,
N_
(
"OSS dsp device"
),
NULL
);
N_
(
"OSS dsp device"
),
NULL
);
add_bool
(
"oss-buggy"
,
0
,
NULL
,
BUGGY_TEXT
,
BUGGY_LONGTEXT
);
add_bool
(
"oss-buggy"
,
0
,
NULL
,
BUGGY_TEXT
,
BUGGY_LONGTEXT
);
add_bool
(
"spdif"
,
1
,
NULL
,
SPDIF_TEXT
,
SPDIF_LONGTEXT
);
set_description
(
_
(
"Linux OSS /dev/dsp module"
)
);
set_description
(
_
(
"Linux OSS /dev/dsp module"
)
);
set_capability
(
"audio output"
,
100
);
set_capability
(
"audio output"
,
100
);
add_shortcut
(
"oss"
);
add_shortcut
(
"oss"
);
...
@@ -120,7 +127,8 @@ static void Probe( aout_instance_t * p_aout )
...
@@ -120,7 +127,8 @@ static void Probe( aout_instance_t * p_aout )
return
;
return
;
}
}
if
(
AOUT_FMT_NON_LINEAR
(
&
p_aout
->
output
.
output
)
)
if
(
config_GetInt
(
p_aout
,
"spdif"
)
&&
AOUT_FMT_NON_LINEAR
(
&
p_aout
->
output
.
output
)
)
{
{
i_format
=
AFMT_AC3
;
i_format
=
AFMT_AC3
;
...
@@ -263,7 +271,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -263,7 +271,7 @@ static int Open( vlc_object_t *p_this )
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
if
(
!
strcmp
(
val
.
psz_string
,
N_
(
"S/PDIF"
)
)
)
if
(
!
strcmp
(
val
.
psz_string
,
N_
(
"
A/52 over
S/PDIF"
)
)
)
{
{
p_aout
->
output
.
output
.
i_format
=
VLC_FOURCC
(
's'
,
'p'
,
'd'
,
'i'
);
p_aout
->
output
.
output
.
i_format
=
VLC_FOURCC
(
's'
,
'p'
,
'd'
,
'i'
);
}
}
...
...
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