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
61b87efd
Commit
61b87efd
authored
Jan 13, 2003
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not forget to register aout_ChannelsRestart as the callback for
audio-device, plus miscellaneous changes.
parent
930c3c31
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
14 deletions
+20
-14
modules/audio_output/alsa.c
modules/audio_output/alsa.c
+3
-1
modules/audio_output/oss.c
modules/audio_output/oss.c
+7
-3
modules/audio_output/sdl.c
modules/audio_output/sdl.c
+4
-5
modules/gui/macosx/aout.m
modules/gui/macosx/aout.m
+6
-5
No files found.
modules/audio_output/alsa.c
View file @
61b87efd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* alsa.c : alsa plugin for vlc
* alsa.c : alsa plugin for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000-2001 VideoLAN
* Copyright (C) 2000-2001 VideoLAN
* $Id: alsa.c,v 1.1
8 2003/01/08 10:50:58
massiot Exp $
* $Id: alsa.c,v 1.1
9 2003/01/13 14:51:25
massiot Exp $
*
*
* Authors: Henri Fallon <henri@videolan.org> - Original Author
* Authors: Henri Fallon <henri@videolan.org> - Original Author
* Jeffrey Baker <jwbaker@acm.org> - Port to ALSA 1.0 API
* Jeffrey Baker <jwbaker@acm.org> - Port to ALSA 1.0 API
...
@@ -207,6 +207,8 @@ static void Probe( aout_instance_t * p_aout,
...
@@ -207,6 +207,8 @@ static void Probe( aout_instance_t * p_aout,
/* Add final settings to the variable */
/* Add final settings to the variable */
var_AddCallback
(
p_aout
,
"audio-device"
,
aout_ChannelsRestart
,
NULL
);
var_AddCallback
(
p_aout
,
"audio-device"
,
aout_ChannelsRestart
,
NULL
);
val
.
b_bool
=
VLC_TRUE
;
var_Set
(
p_aout
,
"intf-change"
,
val
);
}
}
/*****************************************************************************
/*****************************************************************************
...
...
modules/audio_output/oss.c
View file @
61b87efd
...
@@ -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
3 2003/01/07 15:12:1
5 massiot Exp $
* $Id: oss.c,v 1.4
4 2003/01/13 14:51:2
5 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>
...
@@ -214,8 +214,9 @@ static void Probe( aout_instance_t * p_aout )
...
@@ -214,8 +214,9 @@ static void Probe( aout_instance_t * p_aout )
var_Change
(
p_aout
,
"audio-device"
,
VLC_VAR_ADDCHOICE
,
&
val
);
var_Change
(
p_aout
,
"audio-device"
,
VLC_VAR_ADDCHOICE
,
&
val
);
}
}
val
.
b_bool
=
VLC_TRUE
;
var_Set
(
p_aout
,
"intf-change"
,
val
);
var_AddCallback
(
p_aout
,
"audio-device"
,
aout_ChannelsRestart
,
NULL
);
}
}
/*****************************************************************************
/*****************************************************************************
...
@@ -311,6 +312,9 @@ static int Open( vlc_object_t *p_this )
...
@@ -311,6 +312,9 @@ static int Open( vlc_object_t *p_this )
}
}
free
(
val
.
psz_string
);
free
(
val
.
psz_string
);
val
.
b_bool
=
VLC_TRUE
;
var_Set
(
p_aout
,
"intf-change"
,
val
);
/* Reset the DSP device */
/* Reset the DSP device */
if
(
ioctl
(
p_sys
->
i_fd
,
SNDCTL_DSP_RESET
,
NULL
)
<
0
)
if
(
ioctl
(
p_sys
->
i_fd
,
SNDCTL_DSP_RESET
,
NULL
)
<
0
)
{
{
...
...
modules/audio_output/sdl.c
View file @
61b87efd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* sdl.c : SDL audio output plugin for vlc
* sdl.c : SDL audio output plugin for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2000-2002 VideoLAN
* Copyright (C) 2000-2002 VideoLAN
* $Id: sdl.c,v 1.1
8 2002/12/10 18:22:01 gbazin
Exp $
* $Id: sdl.c,v 1.1
9 2003/01/13 14:51:25 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>
...
@@ -199,13 +199,12 @@ static int Open ( vlc_object_t *p_this )
...
@@ -199,13 +199,12 @@ static int Open ( vlc_object_t *p_this )
val
.
psz_string
=
N_
(
"Mono"
);
val
.
psz_string
=
N_
(
"Mono"
);
}
}
var_Change
(
p_aout
,
"audio-device"
,
VLC_VAR_SETDEFAULT
,
&
val
);
var_Change
(
p_aout
,
"audio-device"
,
VLC_VAR_SETDEFAULT
,
&
val
);
var_AddCallback
(
p_aout
,
"audio-device"
,
aout_ChannelsRestart
,
var_AddCallback
(
p_aout
,
"audio-device"
,
aout_ChannelsRestart
,
NULL
);
NULL
);
}
val
.
b_bool
=
VLC_TRUE
;
val
.
b_bool
=
VLC_TRUE
;
var_Set
(
p_aout
,
"intf-change"
,
val
);
var_Set
(
p_aout
,
"intf-change"
,
val
);
}
p_aout
->
output
.
output
.
i_rate
=
obtained
.
freq
;
p_aout
->
output
.
output
.
i_rate
=
obtained
.
freq
;
p_aout
->
output
.
i_nb_samples
=
obtained
.
samples
;
p_aout
->
output
.
i_nb_samples
=
obtained
.
samples
;
...
...
modules/gui/macosx/aout.m
View file @
61b87efd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* aout.m: CoreAudio output plugin
* aout.m: CoreAudio output plugin
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* Copyright (C) 2002 VideoLAN
* $Id: aout.m,v 1.1
8 2003/01/02 22:49:19 jlj
Exp $
* $Id: aout.m,v 1.1
9 2003/01/13 14:51:25 massiot
Exp $
*
*
* Authors: Colin Delacroix
<colin
@
zoy
.
org
>
* Authors: Colin Delacroix
<colin
@
zoy
.
org
>
* Jon Lech Johansen
<jon-vl
@
nanocrew
.
net
>
* Jon Lech Johansen
<jon-vl
@
nanocrew
.
net
>
...
@@ -176,6 +176,7 @@ int E_(OpenAudio)( vlc_object_t * p_this )
...
@@ -176,6 +176,7 @@ int E_(OpenAudio)( vlc_object_t * p_this )
UInt32
i
,
i_param_size
;
UInt32
i
,
i_param_size
;
struct
aout_sys_t
*
p_sys
;
struct
aout_sys_t
*
p_sys
;
aout_instance_t
*
p_aout =
(aout_instance_t
*
)
p_this
;
aout_instance_t
*
p_aout =
(aout_instance_t
*
)
p_this
;
vlc_value_t
val
;
/
*
Allocate
structure
*
/
/
*
Allocate
structure
*
/
p_sys =
(struct
aout_sys_t
*
)
malloc
(
sizeof
(
struct
aout_sys_t
)
);
p_sys =
(struct
aout_sys_t
*
)
malloc
(
sizeof
(
struct
aout_sys_t
)
);
...
@@ -197,8 +198,6 @@ int E_(OpenAudio)( vlc_object_t * p_this )
...
@@ -197,8 +198,6 @@ int E_(OpenAudio)( vlc_object_t * p_this )
if( var_Type( p_aout, "audio-device" ) == 0 )
if( var_Type( p_aout, "audio-device" ) == 0 )
{
{
vlc_value_t val;
var_Create( p_aout, "audio-device", VLC_VAR_STRING |
var_Create( p_aout, "audio-device", VLC_VAR_STRING |
VLC_VAR_HASCHOICE );
VLC_VAR_HASCHOICE );
...
@@ -208,9 +207,11 @@ int E_(OpenAudio)( vlc_object_t * p_this )
...
@@ -208,9 +207,11 @@ int E_(OpenAudio)( vlc_object_t * p_this )
var_Change( p_aout, "audio-device", VLC_VAR_ADDCHOICE,
&
val );
var_Change( p_aout, "audio-device", VLC_VAR_ADDCHOICE,
&
val );
}
}
var_AddCallback( p_aout, "audio-device", aout_ChannelsRestart,
NULL );
}
val.b_bool = VLC_TRUE;
val.b_bool = VLC_TRUE;
var_Set( p_aout, "intf-change", val );
var_Set( p_aout, "intf-change", val );
}
/* Get selected device */
/* Get selected device */
if( GetDevice( p_aout,
&
p_sys->devid ) )
if( GetDevice( p_aout,
&
p_sys->devid ) )
...
...
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