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
605d95f9
Commit
605d95f9
authored
Dec 15, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc: stub device_type functions
They stopped working in version 2.0 and never made much sense.
parent
915f956b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
31 deletions
+9
-31
include/vlc/libvlc_media_player.h
include/vlc/libvlc_media_player.h
+7
-12
lib/audio.c
lib/audio.c
+2
-19
No files found.
include/vlc/libvlc_media_player.h
View file @
605d95f9
...
@@ -1487,23 +1487,18 @@ LIBVLC_API void libvlc_audio_output_device_set( libvlc_media_player_t *p_mi,
...
@@ -1487,23 +1487,18 @@ LIBVLC_API void libvlc_audio_output_device_set( libvlc_media_player_t *p_mi,
const
char
*
psz_device_id
);
const
char
*
psz_device_id
);
/**
/**
* Get current audio device type. Device type describes something like
* Stub for backward compatibility.
* character of output sound - stereo sound, 2.1, 5.1 etc
* \return always -1.
*
* \param p_mi media player
* \return the audio devices type \see libvlc_audio_output_device_types_t
*/
*/
LIBVLC_DEPRECATED
LIBVLC_API
int
libvlc_audio_output_get_device_type
(
libvlc_media_player_t
*
p_mi
);
LIBVLC_API
int
libvlc_audio_output_get_device_type
(
libvlc_media_player_t
*
p_mi
);
/**
/**
* Set current audio device type.
* Stub for backward compatibility.
*
* \param p_mi vlc instance
* \param device_type the audio device type,
according to \see libvlc_audio_output_device_types_t
*/
*/
LIBVLC_API
void
libvlc_audio_output_set_device_type
(
libvlc_media_player_t
*
p_mi
,
LIBVLC_DEPRECATED
int
device_type
);
LIBVLC_API
void
libvlc_audio_output_set_device_type
(
libvlc_media_player_t
*
,
int
);
/**
/**
...
...
lib/audio.c
View file @
605d95f9
...
@@ -217,33 +217,16 @@ void libvlc_audio_output_device_set( libvlc_media_player_t *mp,
...
@@ -217,33 +217,16 @@ void libvlc_audio_output_device_set( libvlc_media_player_t *mp,
free
(
psz_config_name
);
free
(
psz_config_name
);
}
}
/*****************************************************************************
* libvlc_audio_output_get_device_type : Get the current audio device type
*****************************************************************************/
int
libvlc_audio_output_get_device_type
(
libvlc_media_player_t
*
mp
)
int
libvlc_audio_output_get_device_type
(
libvlc_media_player_t
*
mp
)
{
{
audio_output_t
*
p_aout
=
GetAOut
(
mp
);
(
void
)
mp
;
if
(
p_aout
)
{
int
i_device_type
=
var_GetInteger
(
p_aout
,
"audio-device"
);
vlc_object_release
(
p_aout
);
return
i_device_type
;
}
return
libvlc_AudioOutputDevice_Error
;
return
libvlc_AudioOutputDevice_Error
;
}
}
/*****************************************************************************
* libvlc_audio_output_set_device_type : Set the audio device type
*****************************************************************************/
void
libvlc_audio_output_set_device_type
(
libvlc_media_player_t
*
mp
,
void
libvlc_audio_output_set_device_type
(
libvlc_media_player_t
*
mp
,
int
device_type
)
int
device_type
)
{
{
audio_output_t
*
p_aout
=
GetAOut
(
mp
);
(
void
)
mp
;
(
void
)
device_type
;
if
(
!
p_aout
)
return
;
if
(
var_SetInteger
(
p_aout
,
"audio-device"
,
device_type
)
<
0
)
libvlc_printerr
(
"Error setting audio device"
);
vlc_object_release
(
p_aout
);
}
}
void
libvlc_audio_toggle_mute
(
libvlc_media_player_t
*
mp
)
void
libvlc_audio_toggle_mute
(
libvlc_media_player_t
*
mp
)
...
...
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