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
633914e3
Commit
633914e3
authored
Apr 07, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove never used aout_output_t.pf_volume_get
parent
7fca2ae3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
46 deletions
+0
-46
include/vlc_aout.h
include/vlc_aout.h
+0
-1
modules/audio_output/pulse.c
modules/audio_output/pulse.c
+0
-10
modules/audio_output/waveout.c
modules/audio_output/waveout.c
+0
-18
src/audio_output/intf.c
src/audio_output/intf.c
+0
-17
No files found.
include/vlc_aout.h
View file @
633914e3
...
...
@@ -198,7 +198,6 @@ typedef struct aout_output_t
struct
module_t
*
p_module
;
struct
aout_sys_t
*
p_sys
;
void
(
*
pf_play
)(
aout_instance_t
*
);
int
(
*
pf_volume_get
)(
aout_instance_t
*
,
audio_volume_t
*
);
int
(
*
pf_volume_set
)(
aout_instance_t
*
,
audio_volume_t
);
int
i_nb_samples
;
...
...
modules/audio_output/pulse.c
View file @
633914e3
...
...
@@ -258,15 +258,6 @@ static void Play(aout_instance_t *aout)
pa_threaded_mainloop_unlock
(
sys
->
mainloop
);
}
static
int
VolumeGet
(
aout_instance_t
*
aout
,
audio_volume_t
*
volp
)
{
aout_sys_t
*
sys
=
aout
->
output
.
p_sys
;
pa_volume_t
volume
=
pa_cvolume_max
(
&
sys
->
cvolume
);
*
volp
=
pa_sw_volume_to_linear
(
volume
)
*
AOUT_VOLUME_DEFAULT
;
return
0
;
}
static
int
VolumeSet
(
aout_instance_t
*
aout
,
audio_volume_t
vol
)
{
aout_sys_t
*
sys
=
aout
->
output
.
p_sys
;
...
...
@@ -492,7 +483,6 @@ static int Open(vlc_object_t *obj)
pa_threaded_mainloop_unlock
(
mainloop
);
aout
->
output
.
pf_play
=
Play
;
aout
->
output
.
pf_volume_get
=
VolumeGet
;
aout
->
output
.
pf_volume_set
=
VolumeSet
;
return
VLC_SUCCESS
;
...
...
modules/audio_output/waveout.c
View file @
633914e3
...
...
@@ -68,7 +68,6 @@ static int PlayWaveOut ( aout_instance_t *, HWAVEOUT, WAVEHDR *,
static
void
CALLBACK
WaveOutCallback
(
HWAVEOUT
,
UINT
,
DWORD
,
DWORD
,
DWORD
);
static
void
*
WaveOutThread
(
vlc_object_t
*
);
static
int
VolumeGet
(
aout_instance_t
*
,
audio_volume_t
*
);
static
int
VolumeSet
(
aout_instance_t
*
,
audio_volume_t
);
static
int
WaveOutClearDoneBuffers
(
aout_sys_t
*
p_sys
);
...
...
@@ -305,7 +304,6 @@ static int Open( vlc_object_t *p_this )
if
(
waveOutGetVolume
(
p_aout
->
output
.
p_sys
->
h_waveout
,
&
i_dummy
)
==
MMSYSERR_NOERROR
)
{
p_aout
->
output
.
pf_volume_get
=
VolumeGet
;
p_aout
->
output
.
pf_volume_set
=
VolumeSet
;
}
}
...
...
@@ -1021,22 +1019,6 @@ static void* WaveOutThread( vlc_object_t *p_this )
return
NULL
;
}
static
int
VolumeGet
(
aout_instance_t
*
p_aout
,
audio_volume_t
*
pi_volume
)
{
DWORD
i_waveout_vol
;
#ifdef UNDER_CE
waveOutGetVolume
(
0
,
&
i_waveout_vol
);
#else
waveOutGetVolume
(
p_aout
->
output
.
p_sys
->
h_waveout
,
&
i_waveout_vol
);
#endif
i_waveout_vol
&=
0xFFFF
;
*
pi_volume
=
p_aout
->
output
.
i_volume
=
(
i_waveout_vol
*
AOUT_VOLUME_MAX
+
0xFFFF
/*rounding*/
)
/
2
/
0xFFFF
;
return
0
;
}
static
int
VolumeSet
(
aout_instance_t
*
p_aout
,
audio_volume_t
i_volume
)
{
unsigned
long
i_waveout_vol
=
i_volume
*
0xFFFF
*
2
/
AOUT_VOLUME_MAX
;
...
...
src/audio_output/intf.c
View file @
633914e3
...
...
@@ -243,7 +243,6 @@ void aout_VolumeSoftInit( aout_instance_t * p_aout )
{
int
i_volume
;
p_aout
->
output
.
pf_volume_get
=
aout_VolumeSoftGet
;
p_aout
->
output
.
pf_volume_set
=
aout_VolumeSoftSet
;
i_volume
=
config_GetInt
(
p_aout
,
"volume"
);
...
...
@@ -259,14 +258,6 @@ void aout_VolumeSoftInit( aout_instance_t * p_aout )
aout_VolumeSoftSet
(
p_aout
,
(
audio_volume_t
)
i_volume
);
}
/* Placeholder for pf_volume_get(). */
int
aout_VolumeSoftGet
(
aout_instance_t
*
p_aout
,
audio_volume_t
*
pi_volume
)
{
*
pi_volume
=
p_aout
->
output
.
i_volume
;
return
0
;
}
/* Placeholder for pf_volume_set(). */
int
aout_VolumeSoftSet
(
aout_instance_t
*
p_aout
,
audio_volume_t
i_volume
)
{
...
...
@@ -283,17 +274,9 @@ int aout_VolumeSoftSet( aout_instance_t * p_aout, audio_volume_t i_volume )
/* Meant to be called by the output plug-in's Open(). */
void
aout_VolumeNoneInit
(
aout_instance_t
*
p_aout
)
{
p_aout
->
output
.
pf_volume_get
=
aout_VolumeNoneGet
;
p_aout
->
output
.
pf_volume_set
=
aout_VolumeNoneSet
;
}
/* Placeholder for pf_volume_get(). */
int
aout_VolumeNoneGet
(
aout_instance_t
*
p_aout
,
audio_volume_t
*
pi_volume
)
{
(
void
)
p_aout
;
(
void
)
pi_volume
;
return
-
1
;
}
/* Placeholder for pf_volume_set(). */
int
aout_VolumeNoneSet
(
aout_instance_t
*
p_aout
,
audio_volume_t
i_volume
)
{
...
...
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